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 = {
379379 new UglifyJsPlugin ( {
380380 uglifyOptions : {
381381 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
385386 // https://github.com/facebook/create-react-app/pull/4234
386387 ecma : 8 ,
387388 } ,
You can’t perform that action at this time.
0 commit comments