We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems the parser has problems when the last thing in a script tag is a comment, raising the following errors:
SyntaxError: Error transforming $file with 'svelte' plugin: Unterminated regular expression (9:2)
See this gist for an example. Delete the bottom comments to fix the compilation error. It doesn't work with multiline comments either!
Adding anything below the comments also fixes the problem (for instance, uncommenting the last line).
The text was updated successfully, but these errors were encountered:
handle trailing comments in script tags – closes #64
db65f01
Merge pull request #70 from sveltejs/gh-64
e4a9344
handle trailing comments in script tags
Released 1.0.3 with the fix
Sorry, something went wrong.
No branches or pull requests
It seems the parser has problems when the last thing in a script tag is a comment, raising the following errors:
See this gist for an example. Delete the bottom comments to fix the compilation error. It doesn't work with multiline comments either!
Adding anything below the comments also fixes the problem (for instance, uncommenting the last line).
The text was updated successfully, but these errors were encountered: