Skip to content

Commit 90f0ee2

Browse files
committed
enhancement: smaller production bundles
1 parent afea7bd commit 90f0ee2

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,33 @@
1919
{
2020
"targets": {
2121
"node": "current",
22-
"uglify": true
22+
"uglify": false
2323
}
2424
}
2525
],
2626
"react"
2727
],
2828
"plugins": [
29-
"react-hot-loader/babel",
3029
"react-loadable/babel",
3130
"transform-es2015-modules-commonjs",
3231
"transform-class-properties",
3332
"transform-decorators",
3433
"transform-export-extensions",
3534
"transform-object-rest-spread",
3635
"syntax-dynamic-import"
37-
]
36+
],
37+
"env": {
38+
"development": {
39+
"plugins": [
40+
"react-hot-loader/babel"
41+
]
42+
},
43+
"production": {
44+
"plugins": [
45+
"transform-react-remove-prop-types"
46+
]
47+
}
48+
}
3849
},
3950
"_moduleAliases": {
4051
"@css": "common/css",
@@ -150,6 +161,7 @@
150161
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
151162
"babel-plugin-transform-export-extensions": "^6.22.0",
152163
"babel-plugin-transform-object-rest-spread": "^6.26.0",
164+
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
153165
"babel-polyfill": "^6.26.0",
154166
"babel-preset-env": "^1.6.1",
155167
"babel-preset-react": "^6.24.1",

0 commit comments

Comments
 (0)