Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

Commit 1596a17

Browse files
committedAug 6, 2017
Strip prop types for production builds.
1 parent 1dcfb89 commit 1596a17

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed
 

‎.babelrc

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
22
"presets": ["es2015", "flow", "react"],
3-
"plugins": ["transform-class-properties", "transform-object-rest-spread"]
3+
"plugins": ["transform-class-properties", "transform-object-rest-spread"],
4+
"env": {
5+
"production": {
6+
"plugins": ["transform-react-remove-prop-types"]
7+
}
8+
}
49
}

‎config/travis/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fi;
1919

2020
if [ "$BROWSER" = 1 ]; then
2121
npm install -g cypress-cli http-server
22-
npm install react react-dom create-react-class gulp
22+
npm install react react-dom create-react-class prop-types gulp
2323
gulp examples
2424
http-server --silent &
2525
cypress run --record

‎package-lock.json

+11-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"babel-jest": "20.0.3",
5959
"babel-plugin-transform-class-properties": "6.24.1",
6060
"babel-plugin-transform-object-rest-spread": "6.23.0",
61+
"babel-plugin-transform-react-remove-prop-types": "0.4.8",
6162
"babel-preset-es2015": "6.24.1",
6263
"babel-preset-react": "6.24.1",
6364
"babelify": "7.3.0",

0 commit comments

Comments
 (0)
This repository has been archived.