Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 8b5b8ae

Browse files
authored
Merge pull request #377 from ppvg/master
fix: TypeError in production build when targeting ES2015
2 parents ce416aa + aadae6a commit 8b5b8ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/react-scripts/config/webpack.config.prod.js

+3
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ module.exports = {
315315
// Pending further investigation:
316316
// https://github.com/mishoo/UglifyJS2/issues/2011
317317
comparisons: false,
318+
// Don't inline functions with arguments, to avoid name collisions:
319+
// https://github.com/mishoo/UglifyJS2/issues/2842
320+
inline: 1,
318321
},
319322
mangle: {
320323
safari10: true,

0 commit comments

Comments
 (0)