-
-
Notifications
You must be signed in to change notification settings - Fork 223
fix comma operator in debug #746
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
Conversation
jasonlyu123
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution. However, we might need a more complex solution on transformation for better sourcemap.
dummdidumm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
dummdidumm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a bug in combination with $store usage. {@debug $store} is translated to __sveltets_store_get(myfile)}. Notice the missing { at the start. I guess either the remove in debug removes it or the inner store transformation. One way to fix this could be to remove the @debug like it was done before and overwrite only the , inbetween with }{.
|
It's related to the MagicString API, I have no idea how to use prepend/append left/right and the docs aren't helping, using prependLeft on both seems to cover the bug you found |
#739