ViteJS lib 1/3 bigger than esbuild lib #12327
peterpeterparker
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to migrate a library I build with esbuild to vitejs lib but, the resulting bundle is 1/3 bigger with Vitejs.
Anyone has an idea what can be the root cause and if there are parameters I can try to reduce this issue. I know it's Rollup under the hood but, still, 1/3 seems a lot.
When I compare both bundle with their source maps, it seems that every dependency gets bundle with a bit a bigger size which leas the size to grow. Roughly from 260kb to 400kb (non gzipped).
esbuild:
https://github.com/buildwithjuno/juno-js
vitejs:
junobuild/juno-js#6
Source maps
esbuild:
vitejs:
Beta Was this translation helpful? Give feedback.
All reactions