-
Notifications
You must be signed in to change notification settings - Fork 22
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
Mishandling of trailing comments #28
Comments
Would it be a bad idea for the compiler to ignore comments? Considering minification results in removal of the comments. |
The comments can be important - partial support for preserving them was recently added for sveltejs/svelte#4268 |
Rich-Harris
added a commit
that referenced
this issue
Jan 27, 2020
prevent syntax errors when combining comments
Fixed in 0.0.32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trailing comments have some buggy handling, which most of the time just results in them being attached to the wrong line in the generated code, which isn't a huge deal, but there are also cases where they can result in syntactically incorrect output.
->
->
The comments end up outside the function block, but more seriously, the block comment ends up starting on the same line as the line comment.
Ref. sveltejs/svelte#4312
The text was updated successfully, but these errors were encountered: