Skip to content

multiple <script> blocks (was #6387 ) #7648

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

Closed
johndeighan opened this issue Jul 1, 2022 · 1 comment
Closed

multiple <script> blocks (was #6387 ) #7648

johndeighan opened this issue Jul 1, 2022 · 1 comment

Comments

@johndeighan
Copy link

Describe the problem

JavaScript allows multiple script blocks. Therefore, if a JavaScript programmer starts using svelte, it's very confusing to NOT be able to have multiple script blocks. Furthermore, generating svelte code is MUCH more difficult when all JavaScript code needs to be put into a single script block. I'm very disappointed with the response to the previous feature request for these reasons.

Describe the proposed solution

Simply allow multiple script blocks, as is done in JavaScript.

Alternatives considered

There are no good alternatives.

Importance

would make my life easier

@bluwy
Copy link
Member

bluwy commented Jul 1, 2022

#6387 had already been closed with an explanation given at #6387 (comment) (and I agree with it too). If you have further arguments please comment in that issue instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants