-
Notifications
You must be signed in to change notification settings - Fork 85
Could svelte-materialify add a preprocessor like optimize-carbon-imports? #203
Comments
Can you tell me exactly what does this do? |
Sorry, they have a description section in the README, link here.
|
Svelte materialify is soon to be deprecated, I will try to add this feature in svelterial. |
@xhebox maybe my knowledge on this is too low, but rollup should throw away everything unused anyways? |
Yes, you are correct. The thing is about vite, or snowpack. They, when starting a dev server, will do nothing like tree shaking, to speed up the (re)loading process. They only do all the work when it is for production. I've got 1 or 2 sec around, when importing the whole bundle of svelte-materialify. When it is production, it is like 100ms or less. |
There is a preprocessor for carbon that rewrites the import block so that it is importing by components. It speed up the development server.
The text was updated successfully, but these errors were encountered: