Skip to content

Commit a4044a7

Browse files
committed
Specify ecma version (facebook#3743)
1 parent 7ca0800 commit a4044a7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: packages/react-scripts/config/webpack.config.prod.js

+1
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ module.exports = {
293293
// Minify the code.
294294
new UglifyJsPlugin({
295295
uglifyOptions: {
296+
ecma: 5,
296297
compress: {
297298
warnings: false,
298299
// Disabled because of an issue with Uglify breaking seemingly valid code:

Diff for: packages/react-scripts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"react-dev-utils": "^4.2.1",
5454
"style-loader": "0.19.0",
5555
"sw-precache-webpack-plugin": "0.11.4",
56-
"uglifyjs-webpack-plugin": "1.1.4",
56+
"uglifyjs-webpack-plugin": "1.1.6",
5757
"url-loader": "0.6.2",
5858
"webpack": "3.8.1",
5959
"webpack-dev-server": "2.9.4",

0 commit comments

Comments
 (0)