-
Notifications
You must be signed in to change notification settings - Fork 330
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
UglifyJs encounters SyntaxError #160
Comments
It looks like this module has published untranspiled ES6 to npm, which as far as I'm aware isn't supported by UglifyJS yet. Not that it seems to make a difference in this case, but is the extra |
Dang, I should probably have spotted this myself. Thanks for pointing me in the right direction!
Yeah, it's just not documented (yet?) |
Do people generally compress code for Electon apps? It should be possible to disable use of uglify if Node >= v4 is the target anyway. |
Document configuration for stripping dev-only code without compressing/mangling Disabling might be needed for cases like #160, where a dependency has shipped untranspiled ES6 (which UglifyJS can't currently handle)
Awesome! I tried to do this via the individual options |
Document configuration for stripping dev-only code without compressing/mangling Disabling might be needed for cases like #160, where a dependency has shipped untranspiled ES6 (which UglifyJS can't currently handle)
Document configuration for stripping dev-only code without compressing/mangling Disabling might be needed for cases like #160, where a dependency has shipped untranspiled ES6 (which UglifyJS can't currently handle)
I have also a problem with this @insin There is an es6 version of Could you consider use it? |
Hey @insin,
I'm running into an error when trying to build an app which imports https://github.com/Cu3PO42/electron-ipc-tunnel:
nwb serve
is working without problems, onlynwb build
fails :(test repo with minimal nwb react-app which reproduces the issue is here: https://github.com/brumm/test
Env:
The text was updated successfully, but these errors were encountered: