-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build --prod UglifyJs failure #6863
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
Comments
Perhaps if we use |
Yeah this was an issue on the package. as it was not being properly transpiled before npm publish.talked to the author, the package now properly transpiles default parameters and all works fine. |
I'm also getting
It seems dependency to UglifyJs is only via html-webpack-plugin:
|
Same here.. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions.
@angular/cli: 1.1.1
node: 6.9.3
os: darwin x64
@angular/animations: 4.2.2
@angular/common: 4.2.2
@angular/compiler: 4.2.2
@angular/core: 4.2.2
@angular/forms: 4.2.2
@angular/http: 4.2.2
@angular/material: 2.0.0-beta.6
@angular/platform-browser: 4.2.2
@angular/platform-browser-dynamic: 4.2.2
@angular/router: 4.2.2
@angular/cli: 1.1.1
@angular/compiler-cli: 4.2.2
@angular/language-service: 4.2.2
Repro steps.
Use a package that contains default parameters
The log given by the failure.
ERROR in vendor.d600eae1111f8d3f3292.bundle.js from UglifyJs
Unexpected token operator «=», expected punc «,» [/Library/WebServer/Documents/contenta/contenta_angular/~/d8-
jsonapi-querystring/index.js:39,0][vendor.d600eae1111f8d3f3292.bundle.js:28577,47]
Desired functionality.
Not break.
Mention any other details that might be useful.
the issue is related to #5741. I am using a package that exposes es6 and potentially some es7 code, including default parameters.
Cli seems to use UglifyJs without passing it to es5 is that possible? Why does it break on code using default parameters, that is my main question. And what can be done inside the cli (or in my project, or even in the npm package) to go around it.
Thanks for the info
The text was updated successfully, but these errors were encountered: