New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline static hoisting #2021

merged 1 commit into from Sep 21, 2018


None yet
1 participant

probablyup commented Sep 20, 2018

Ironically I think this shrinks the bundle size slightly. This PR inlines a version of hoist-non-react-statics, with some optimizations since we don't have to worry about React 15


This comment has been minimized.


probablyup commented Sep 20, 2018

npm install styled-components@4.0.0-beta.7-hoist

for anyone who wants to test

@probablyup probablyup merged commit 59c4de2 into develop Sep 21, 2018

2 checks passed

bundlesize ./dist/styled-components.min.js: 14.74KB < maxSize 16KB (gzip)(1.52KB smaller than master, good job!)
continuous-integration/travis-ci/pr The Travis CI build passed

@probablyup probablyup deleted the inline-hoist branch Sep 21, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment