File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -379,9 +379,10 @@ module.exports = {
379
379
new UglifyJsPlugin ( {
380
380
uglifyOptions : {
381
381
parse : {
382
- // we want uglify-js to parse ecma 8 code. However we want it to output
383
- // ecma 5 compliant code, to avoid issues with older browsers, this is
384
- // whey we put `ecma: 5` to the compress and output section
382
+ // we want uglify-js to parse ecma 8 code. However, we don't want it
383
+ // to apply any minfication steps that turns valid ecma 5 code
384
+ // into invalid ecma 5 code. This is why the 'compress' and 'output'
385
+ // sections only apply transformations that are ecma 5 safe
385
386
// https://github.com/facebook/create-react-app/pull/4234
386
387
ecma : 8 ,
387
388
} ,
You can’t perform that action at this time.
0 commit comments