We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug bundle-source creates an invalid bundle when transforming the below text
bundle-source
// below is the bad voodoo // */ // above is the bad voodoo
the javascript is transformed into the following invalid code with error SyntaxError: Unexpected token '*'
SyntaxError: Unexpected token '*'
"(function getExport(require, exports) { 'use strict'; const module = { exports }; 'use strict'; /* below is the bad voodoo*/ /* */*/ /* above is the bad voodoo*/ return module.exports; }) //# sourceURL=/bundled-source/bug.js
this can be found in the zlib package of rollup-plugin-node-builtins, specifically here
zlib
The text was updated successfully, but these errors were encountered:
cc @michaelfig I wonder if this is coming from rollup, or from something we've added on top of it (the tildot or metering transforms).
Sorry, something went wrong.
It's the bundle-source comment transform: needs to, e.g. value = value.replace(/\*\//g, '*X/') when converting comment contents into block comments.
value = value.replace(/\*\//g, '*X/')
fix(bundle-source): fix comment misparse, make require optional
e8f4127
Closes: #1281, closes: #362
Successfully merging a pull request may close this issue.
Describe the bug
bundle-source
creates an invalid bundle when transforming the below textthe javascript is transformed into the following invalid code with error
SyntaxError: Unexpected token '*'
this can be found in the
zlib
package ofrollup-plugin-node-builtins, specifically here
The text was updated successfully, but these errors were encountered: