-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 regular script tags #335
Comments
Initial idea - replacing the test here with |
I think that approach is good, it's how it behaves in Ractive and it seems to work okay. Was occasionally a source of confusion if you left a preceding element open (since the component script becomes a regular script) but since the parser is now quite strict about that sort of thing it shouldn't be an issue.
Definitely – without it you can't do this sort of thing: <body>
<main><App/></main>
<script src='bundle.js'></script>
</body> |
only process special tags (script, style) when they are top-level
Released 1.10.2 with the update: https://svelte.technology/repl/?version=1.10.2&gist=9cfc92380e52f775ca45024146435a47 |
Would be great to have a way to include a regular script tag (not component definition).
REPL
Some considerations off the top of my head:
Also, I encountered the issue when using Svelte as a primary server-side renderer:
Does component code even make sense when using SSR?
The text was updated successfully, but these errors were encountered: