Skip to content
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

Reduce final bundle size by removing three from dependencies #9

Merged
merged 1 commit into from
Feb 4, 2020

Conversation

ColinPeyrat
Copy link
Contributor

This optimization prevents to have two versions of three bundled by moving it from dependencies to peerDependencies. Then, when installing this package, it will use the three version already installed (as long as it matches the >= 0.110.0). If not, it will warn the user.

Before : 432kb
magicshader-before

After : 290kb
magicshader-after

@luruke
Copy link
Owner

luruke commented Feb 4, 2020

Great, thanks @ColinPeyrat

@luruke luruke merged commit bf9c9c1 into luruke:master Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants