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

fix: TypeError in production build when targeting ES2015 #377

Merged
merged 1 commit into from
Aug 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ module.exports = {
// Pending further investigation:
// https://github.com/mishoo/UglifyJS2/issues/2011
comparisons: false,
// Don't inline functions with arguments, to avoid name collisions:
// https://github.com/mishoo/UglifyJS2/issues/2842
inline: 1,
},
mangle: {
safari10: true,
Expand Down