Uh oh!
There was an error while loading. Please reload this page.
Strip custom prop-types in production - #448
Conversation
Minified size with bundled dependencies before 17.53 KB After 16.66 KB
jquense
left a comment
There was a problem hiding this comment.
Lgtm, I'm assuming the direct assignment to .propTypes is because the Babel plugin doesn't strip them otherwise?
TrySound
commented
Jan 13, 2019
Yep |
TrySound
commented
Jan 14, 2019
@jquense Is this good now? |
## [2.5.3](v2.5.2...v2.5.3) (2019-01-14) ### Bug Fixes * strip custom prop-types in production ([#448](#448)) ([46fa20f](46fa20f))
jquense
commented
Jan 14, 2019
🎉 This PR is included in version 2.5.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
oliviertassinari
commented
Jan 14, 2019
-200 B gzipped https://bundlephobia.com/result?p=react-transition-group@2.5.3 🚀 |
jquense
commented
Jan 14, 2019
hmm we are still including the prop-types library tho. seems like the import isn't getting stripped |
oliviertassinari
commented
Jan 14, 2019
@jquense It's not. I wish the babel plugin was doing such. |
It's another gain potential. https://bundlephobia.com/result?p=prop-types@15.6.2. However, I'm not sure how we can make it work with ESM modules. Conditionally importing modules? 🤔. |
TrySound
commented
Jan 14, 2019
It's because of old context api I guess |
…d-compatible * origin/master: chore: bundle UMD with rollup (reactjs#449) chore(release): 2.5.3 [skip ci] fix: strip custom prop-types in production (reactjs#448) chore: fix storybook (reactjs#445) chore(release): 2.5.2 [skip ci] fix: pass appear to CSSTransition callbacks (reactjs#441) docs: Fix type declaration comment (reactjs#439) chore(release): 2.5.1 [skip ci] fix: prevent calling setState in TransitionGroup if it has been unmounted (reactjs#435)
…d-compatible * origin/master: chore: bundle UMD with rollup (reactjs#449) chore(release): 2.5.3 [skip ci] fix: strip custom prop-types in production (reactjs#448) chore: fix storybook (reactjs#445) chore(release): 2.5.2 [skip ci] fix: pass appear to CSSTransition callbacks (reactjs#441) docs: Fix type declaration comment (reactjs#439) chore(release): 2.5.1 [skip ci] fix: prevent calling setState in TransitionGroup if it has been unmounted (reactjs#435)
## [2.5.3](reactjs/react-transition-group@v2.5.2...v2.5.3) (2019-01-14) ### Bug Fixes * strip custom prop-types in production ([#448](reactjs/react-transition-group#448)) ([46fa20f](reactjs/react-transition-group@46fa20f))
## [2.5.3](reactjs/react-transition-group@v2.5.2...v2.5.3) (2019-01-14) ### Bug Fixes * strip custom prop-types in production ([#448](reactjs/react-transition-group#448)) ([46fa20f](reactjs/react-transition-group@46fa20f))
## [2.5.3](reactjs/react-transition-group@v2.5.2...v2.5.3) (2019-01-14) ### Bug Fixes * strip custom prop-types in production ([#448](reactjs/react-transition-group#448)) ([46fa20f](reactjs/react-transition-group@46fa20f))
## [2.5.3](reactjs/react-transition-group@v2.5.2...v2.5.3) (2019-01-14) ### Bug Fixes * strip custom prop-types in production ([#448](reactjs/react-transition-group#448)) ([46fa20f](reactjs/react-transition-group@46fa20f))
Minified size with bundled dependencies before
17.53 KB
After
16.66 KB