-
Hi there, First off, great work on this library! The docs are truly phenomenal, the components are elegant and their APIs appear to be comprehensive and flexible. I also love that you include custom hooks, many of which I am excited to use in my own apps. Just for a little background, the app I will be referencing in this discussion is built with Preact v10.6, with Bloomer components (uses Bulma CSS), and bundled via Parcel v1 (have yet to migrate to v2). Just to test the water, I installed I ran the production build and checked the file size of the modified view. It had grown by over 600K. It appears that Parcel is not tree shaking out just the one component and it's dependencies, but is instead bundling the entire library.
I did not find any previous discussion about this topic, so I hope this is not a duplicate. Thank you for your time, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @crstffr, thanks for kind words! All Mantine packages ship cjs and esm bundles. Most of the modern bundlers support tree shacking with these formats, I've tested tree shacking with webpack 5 and vite, but cannot say anything about parcel as I haven't ever used it. |
Beta Was this translation helpful? Give feedback.
Hi @crstffr, thanks for kind words! All Mantine packages ship cjs and esm bundles. Most of the modern bundlers support tree shacking with these formats, I've tested tree shacking with webpack 5 and vite, but cannot say anything about parcel as I haven't ever used it.