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
As I said on the PR, I don't think this is a bug, and is something your build process needs to be handling for all your code if you want to use an inline script.
I don't necessarily disagree in principle, but implementing a general solution would involve doing a full parse to figure out which quotes to use, which seems like a lot of work, and assuming backticks for this particular case seems hacky and prone to breaking in the future. The counter-argument would be that it should be the project's responsibility to not break - it's like a PHP library file having a closing ?> tag with trailing whitespace, valid code but unnecessary and possibly problematic for users.
This line closes the open script tag if Svelte code is delivered in an inline script: https://github.com/sveltejs/svelte/blob/master/src/runtime/internal/dom.ts#L278
The solution is to split the string up/put it in a variable so it doesn't appear literally, e.g.
"</scr" + "ipt>"
.The text was updated successfully, but these errors were encountered: