diff --git a/.babelrc b/.babelrc index 553c4b02..f359fcdc 100644 --- a/.babelrc +++ b/.babelrc @@ -9,6 +9,7 @@ "plugins": [ "dev-expression", "add-module-exports", - "transform-object-assign" + "transform-object-assign", + ["transform-react-remove-prop-types", { mode: "wrap" }] ], } diff --git a/CHANGELOG.md b/CHANGELOG.md index d689687c..7d0b9c07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,16 +2,24 @@ > 2017-XX-XX - **Feature:** Dist build now includes both production and development builds ([#64]) +- **Feature:** PropTypes are now wrapped allowing for lighter weight production builds ([#69]) + +[#64]: https://github.com/reactjs/react-transition-group/issues/64 +[#69]: https://github.com/reactjs/react-transition-group/issues/69 +[v1.1.X]: https://github.com/reactjs/react-transition-group/compare/v1.1.3...master ## [v1.1.3] > 2017-05-02 - bonus release, no additions +[v1.1.3]: https://github.com/reactjs/react-transition-group/compare/v1.1.2...v1.1.3 + ## [v1.1.2] > 2017-05-02 - **Bugfix:** Fix refs on children ([#39]) + [v1.1.2]: https://github.com/reactjs/react-transition-group/compare/v1.1.1...v1.1.2 [#39]: https://github.com/reactjs/react-transition-group/pull/39 diff --git a/package.json b/package.json index dc93fc28..2c42f3b3 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-dev-expression": "^0.2.1", "babel-plugin-transform-object-assign": "^6.22.0", + "babel-plugin-transform-react-remove-prop-types": "^0.4.5", "babel-preset-latest": "^6.24.0", "babel-preset-react": "^6.23.0", "babel-preset-stage-2": "^6.18.0",