Closed andrejohansson closed 2 years ago
Have you installed the package as dependency or devDependency ?
As a devDependency!
@andrejohansson Seems like something has changed on the SvelteKit or vite side where devDependencies aren't automatically optimized anymore.
I have already fixed it in @steeze-ui/icons where now every Icon Source is bundled in 1 big index.js which fixes the import waterfalls and code splits in production builds.
When I have some time I'll change it in this package aswell!
Much appreciated!
@andrejohansson now improved in 4.1.0
I'm using roughly 10-15 of the icons as can be seen in this picture:
I'm importing them like this:
And using them like this: I'm importing them like this:
But for some reason it seems that all icons in the package gets loaded, using one request per icon which very much unnecessary work for something not being used.
Is this expected behaviour? Can I do something to prevent this?
I'm using
and using
optimizeDeps
just causes the error mentioned in #18