-
Notifications
You must be signed in to change notification settings - Fork 131
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
ERROR in bundle from UglifyJs Unexpected token: punc (,) #205
Comments
Seems like we wrote an object literal like Though, you must be using something truly ancient to not have that syntax... Webpack v2 I guess shows that just be the case. I'm surprised you don't see breaks somewhere else! |
Per #206 (comment), this is exceptionally strange given |
Yes 😄 |
Thanks for looking into this! I guess its time for us to move out of ancient history. |
Note that there should be other workarounds available to you, like
|
ERROR in static/js/index.js from UglifyJs |
I am running into this issue, but not related to UglifyJs, instead when trying to use webpack with typescript with an es5 target. I have a minimum repro here: https://github.com/taurheim/webpack-typescript-es5-demo @andrewbranch would appreciate your insights here, this might not be a tslib problem directly but it only broke with the new tslib version. Thanks! |
This all seems like everyone else’s bugs, not ours, but I guess we can just delete the offending syntax 🥴 |
Our project's webpack build which uses UglifyJS (
uglify-js
) started erroring after thetslib
update from 2.5.0 to 2.5.1.Here is the error message we are seeing (I replaced the name of our bundle file w/ bundle.js):
Here are the package versions used that create this build error:
We rolled back
tslib
to version 2.5.0 to fix our builds.Can this older version of
uglify-js
be supported or should we work towards updating our package dependencies?The text was updated successfully, but these errors were encountered: