-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
swc can't handle unescaped \0
#2853
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
Comments
SukkaW
added a commit
to SukkaW/rollup-plugin-swc
that referenced
this issue
Nov 27, 2021
SukkaW
added a commit
to SukkaW/rollup-plugin-swc
that referenced
this issue
Nov 27, 2021
SukkaW
added a commit
to SukkaW/rollup-plugin-swc
that referenced
this issue
Apr 16, 2022
swc already fixes it, and the test case was added in swc-project/swc#4255 x-ref: - swc-project/swc#2853 - swc-project/swc#2853 - #2
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I am developing a Rollup plugin based on
swc
(using swc as a transformer).Rollup uses
\0
as itsvirtual module
identifier, e.g. rollup's commonjs module uses\0commonjsHelpers.js
as the name of its virtual module, which would emit lines like this:However, swc would throw
Syntax Error
on\0
:Input code
Config
Playground link
No response
Expected behavior
Shouldn't throw Syntax Error on
\0
, either escape it (no matter the given target) silently or leave it as it is.Version
1.2.111
Additional context
No response
The text was updated successfully, but these errors were encountered: