-
Notifications
You must be signed in to change notification settings - Fork 182
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
Unexpected regular expression #44
Comments
This comment was marked as outdated.
This comment was marked as outdated.
@krutzler no, i have problems with package and yahoo as always terribly maintenance own repos, instead of a live response, I get a robot 😞 |
/cc @okuryu friendly ping, we still have problem with example above |
test.js: const serialize = require('serialize-javascript')
const options = {
file: 'test5.js',
input: '/******/ function hello(a) {console.log(a)}',
terserOptions: {
output: {
comments: 'all',
},
},
extractComments: {
condition: 'should be extracted',
filename: (file) => file.replace(/(\.\w+)$/, '.license$1'),
banner: (licenseFile) =>
`License information can be found in ${licenseFile}`,
},
}
console.log(serialize(options))
Did you mean that |
@okuryu yep, because deserialize not working in this case |
Hmm. it seems to be a bug. I'll try to fix it, but it may take some time. Your cooperation is always welcome. |
Input:
After serialize we use
And code in
Function
throwSyntaxError: Unexpected regular expression
The text was updated successfully, but these errors were encountered: