Skip to content

Commit 68c1ffa

Browse files
committed
keep prop-types in production minified UMD build
when the time is right, one need only change the BABEL_ENV for build:umd:min back to "rollup-production"
1 parent 9782b5d commit 68c1ffa

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

.babelrc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@
4343
"external-helpers",
4444
["transform-react-remove-prop-types", { "removeImport": true }]
4545
]
46-
},
47-
"production": {
48-
"plugins": [
49-
["transform-react-remove-prop-types", { "removeImport": true }]
50-
]
5146
}
5247
}
5348
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
3131
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
3232
"build:umd": "cross-env BABEL_ENV=rollup NODE_ENV=development rollup -c -o dist/react-redux.js",
33-
"build:umd:min": "cross-env BABEL_ENV=rollup-production NODE_ENV=production rollup -c -o dist/react-redux.min.js",
33+
"build:umd:min": "cross-env BABEL_ENV=rollup NODE_ENV=production rollup -c -o dist/react-redux.min.js",
3434
"build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
3535
"clean": "rimraf lib dist es coverage",
3636
"lint": "eslint src test/utils test/components",
@@ -46,6 +46,7 @@
4646
"hoist-non-react-statics": "^2.5.5",
4747
"invariant": "^2.2.4",
4848
"loose-envify": "^1.1.0",
49+
"prop-types": "^15.6.2",
4950
"react-is": "^16.4.2",
5051
"shallow-equals": "^1.0.0"
5152
},
@@ -90,7 +91,6 @@
9091
"jest": "^23.4.1",
9192
"jest-dom": "^1.12.0",
9293
"npm-run": "^5.0.1",
93-
"prop-types": "^15.6.2",
9494
"react": "^16.4.2",
9595
"react-dom": "^16.4.2",
9696
"react-testing-library": "^5.0.0",

0 commit comments

Comments
 (0)