You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently if you have a the string of a style tag anywhere in your script tag, you can possibly run into parsing errors because Svelte thinks I'm trying to declare a style tag and I was wondering if it can be fixed without having to cheat around it.
The Svelte compiler itself is fine with this code (as can be seen in the playground), so, yes, this is presumably a preprocessing issue, and is a duplicate of the above issue.
Describe the bug
currently if you have a the string of a style tag anywhere in your script tag, you can possibly run into parsing errors because Svelte thinks I'm trying to declare a style tag and I was wondering if it can be fixed without having to cheat around it.
Reproduction
For example
The above code will crash unless you do something like the following
Maybe Svelte's parser can treat the style tag as a simple string if its inside a string or tempalate literals?
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: