You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
The react-scripts package uses the UglifyJsPlugin version distributed by webpack (webpack.optimize.UglifyJsPlugin) which is quite old and doesn't support the minification of ES6 code (see here).
Since version 1.0.0 the plugin (now under a separate repo) uses a new uglify version that supports ES6 minification. Similar projects like angular-cli are already using it (angular/angular-cli#7610) or are planning to use it (create-react-app in 2.0.0) .
Simply replacing the old plugin with the new one would actually resolve #158 and #21 and bring ES6 prod builds! 🚀