New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow src in <script setup> #219
Comments
If you put code outside Vue SFC file, we can't provide any development experience. |
Aside from IDE support, If you simply like having the parts in different editor tabs, you can open the same file in different tabs and scroll to different parts (not sure about other IDEs but VSCode can do that just fine) |
I wanted to support this issue at one point, then changed my mind back and forth a few time.
To me it wasn't about having two views in the IDE. It was more about splitting large components into smaller parts. With other frameworks I was used to having the code and the template in two files next to each other (it was the only way). I saw the problems though, and came to the conclusion that you can always put code in separate files and import it into your 👉 To me that suggests that "code writing" improvements shouldn't be limited to |
Hi, I don't understand the rationale for disallowing scripts to be placed in an external file for <script setup>. Even normal scripts depend on the component's context and yet there is no such restriction. I like to separate my css, html & js by using vue-builder-webpack-plugin. Why can't you allow <script setup> to have an src attribute?
The text was updated successfully, but these errors were encountered: