-
Notifications
You must be signed in to change notification settings - Fork 355
Why is the final bundle so big? #187
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
Comments
This library should be tree shakeable, 100%. It's way too big. Especially since most users will only import 1 or a few components. @paulogr @davidmandeeli In the meantime, if you have something like this import { Sketch as SketchPicker } from 'vue-color' You can replace it with import SketchPicker from 'vue-color/src/components/Sketch' I've verified that the resulting bundle is much smaller. From 80kib to 13kib |
Uow man, thanks, it helps a lot! I'm using the Chrome picker was reduced from 80kb to 27kb, the +14kb it's for tinycolor dependency. |
Not sure if this works with the latest version anymore, I keep getting "vue-color\src\components\Chrome doesn't exist" I think it expects a .js file while the src is a .vue file? |
Hi all, v3.0 is ready and it supports tree-shaking. Try it out now: |
Hi, i'm using this package for while and looking at the code and dependencies can't figure out why the final bundle has 79.5kb minified.
Can someone help me to figure out why?
Thanks!
The text was updated successfully, but these errors were encountered: