SyntaxError if used with Webpack and UglifyJs
See original GitHub issueVersion 4.0.0-rc3 throws an SyntaxError if used with Webpack and UglifyJs:
SyntaxError: Unexpected token: name (Event) [../~/reconnecting-websocket/dist/reconnecting-websocket-cjs.js:3,0]
Version 3.2.2 can be used without any errors
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
UglifyJS webpack plugin throws: Unexpected token: name ...
My recommendation is Babelify to which I switched after having constant errors with Uglify. Edit: The problem might be in your new webpack....
Read more >How I Fixed: UglifyJs Unexpected token: name (DropIn)
As the error states, the issue is with the UglifyJs plugin, which I use in combination with WebPack. This is a frustrating show-stopping...
Read more >uglifyjs-webpack-plugin
UglifyJS Webpack Plugin. This plugin uses uglify-js to minify your JavaScript. Requirements. This module requires a minimum of Node v6.9.0 ...
Read more >UglifyJs error on production build - sage
Copping this error when I go to deploy/build for production. I believe it's an underlying problem with Webpack and Uglify, but just wondering...
Read more >ERROR in file.js from UglifyJs SyntaxError: Unexpected token
Turns out I had excluded node_modules in the babel loader step, and so the moment date range code, which is written in ES6,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ES6 to ES5 should be done by THIS module (via rollup), rather than by the final app. This changed somehow from 3.2.2 to 4.0-rc.
same error