-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Using Uglify 3.0 results in errors #636
Comments
We just tried upgrading to [email protected] - au build --env prod still fails, but there are no errors, instead the app-bundle.js / vendor-bundle.js files just contain the text "undefined". Will wait for an update to aurelia-cli here. |
@sam-piper same here without |
There is another issue, besides unsupported "fromString". line 242 in bundle.js let minificationOptions = Object.assign({ fromString: true }, buildOptions.getValue('minify')); When you assign an object The I inspected
@JeroenVinke , the question is why we need Also suggest to add checking on |
@huochunpeng we added that so that you can supply the minification options through aurelia.json. It looks like you have been looking into this. Would you like to create a PR to add support for uglifyjs@3? |
I was trying to do a fix. So |
@huochunpeng take a look at aurelia/framework#790 |
I'm submitting a bug report
0.29.0
Please tell us about your environment:
Operating System:
OSX 10.x|Linux (distro)|Windows [7|8|8.1|10]
Node Version:
6.2.0
3.8.9
Browser:
all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView
Language:
all | TypeScript X.X | ESNext
Current behavior:
When [email protected] is used, production builds fail:
Digging a bit further yields the follow error:
This is because Uglify-js@3 has a new API that is not backwards compatible with uglify-js@2:
Expected/desired behavior:
What is the expected behavior?
aurelia-cli to work with uglify-js@3
What is the motivation / use case for changing the behavior?
The text was updated successfully, but these errors were encountered: