Skip to content

Commit

Permalink
keep prop-types in production minified UMD build
Browse files Browse the repository at this point in the history
when the time is right, one need only
change the BABEL_ENV for build:umd:min back to "rollup-production"
  • Loading branch information
cellog committed Aug 18, 2018
1 parent 9782b5d commit 68c1ffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@
"external-helpers",
["transform-react-remove-prop-types", { "removeImport": true }]
]
},
"production": {
"plugins": [
["transform-react-remove-prop-types", { "removeImport": true }]
]
}
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
"build:umd": "cross-env BABEL_ENV=rollup NODE_ENV=development rollup -c -o dist/react-redux.js",
"build:umd:min": "cross-env BABEL_ENV=rollup-production NODE_ENV=production rollup -c -o dist/react-redux.min.js",
"build:umd:min": "cross-env BABEL_ENV=rollup NODE_ENV=production rollup -c -o dist/react-redux.min.js",
"build": "npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
"clean": "rimraf lib dist es coverage",
"lint": "eslint src test/utils test/components",
Expand All @@ -46,6 +46,7 @@
"hoist-non-react-statics": "^2.5.5",
"invariant": "^2.2.4",
"loose-envify": "^1.1.0",
"prop-types": "^15.6.2",
"react-is": "^16.4.2",
"shallow-equals": "^1.0.0"
},
Expand Down Expand Up @@ -90,7 +91,6 @@
"jest": "^23.4.1",
"jest-dom": "^1.12.0",
"npm-run": "^5.0.1",
"prop-types": "^15.6.2",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"react-testing-library": "^5.0.0",
Expand Down

0 comments on commit 68c1ffa

Please sign in to comment.