Skip to content

Commit 8b5b8ae

Browse files
authored
Merge pull request wmonk#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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy