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
Describe the bug
When any string started with template quotes: ` starts with a single quote ', the single quotes are not correct in the final compiled code.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
When any string started with template quotes: ` starts with a single quote
'
, the single quotes are not correct in the final compiled code.Example 1:
produces:
Note the extra
R'
at the end, and wrong quotes on the outside:'#ERRORR''
It should be
"'#ERROR"
Or the below even works fine.
`'#ERROR'`
Example 2:
Produces the following:
but it should be:
(again, even ` would work here instead of double quotes)
Config
Version
The version of @swc/core:
The text was updated successfully, but these errors were encountered: