How to use rollup with SvelteKit? #6848
Replies: 4 comments 4 replies
-
Doesn't Vite already do this? |
Beta Was this translation helpful? Give feedback.
-
@s3812497 no it doesn't. You need uglify or terser through rollup to get this done. Which is what I am trying to do with no luck! |
Beta Was this translation helpful? Give feedback.
-
Vite uses rollup and does exactly what you want on |
Beta Was this translation helpful? Give feedback.
-
@s3812497 @david-plugge Vite's rollup does not include treeshaking, or the usage of terser/uglify which removes any JavaScript code that is not used, sometimes called dead code. In terser for example, Which I am stumbling upon how to do exactly in the newly messed up Vite setup which doesn't allow for an external rollup.conf.js where it was easy to do. 🤦🏼♂️ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
Is it possible to use rollup with Sveltekit to generate a bundled and stripped down build? Any tutorial there on doing so?
Beta Was this translation helpful? Give feedback.
All reactions