-
Notifications
You must be signed in to change notification settings - Fork 128
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 cannot be used with ES6 output from typescript in current config #139
Comments
Its worth noting that Uglify appears to be fine with "const", and seems to just not like "let" for some reason. As a result if you're not truly using all ES6 syntax/format; its not a heavy lift to get this working with Uglify. |
Thanks for the reply @securityvoid :) Do you think the ES6 output from tsc should be converted to ES5 using Babel? |
I get no error when settings:
and running:
I've encountered errors with UglifyJsPlugin and ES6 + babel before... better to have TS do the heavy lifting than playing games with wepback and babel... |
I solved this issue adding
hope this helps! :) |
Per webpack/webpack#2972
I have had to comment out these lines in the prod.js webpack config.
Any advice/ideas/thoughts about this would be appreciated.
Thanks,
Ben
The text was updated successfully, but these errors were encountered: