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
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
SWC fails to correctly transform a tagged template literal which starts and ends with a single quotation mark
Input code
Config
Actual output
Note the double "o" in "Hello" and the unterminated string
Expected behavior
Double quotes around the single quotes and escape the single quotes
Version
The version of @swc/core: 1.2.40
Additional context
Removing either of the quotes in the template literal works fine - it uses double quotes and escapes the single quote.
The text was updated successfully, but these errors were encountered: