Why does Vite use both rollup and ESBuild rather than just ESBuild? #7622
-
Like the title says, I'm just curious why Vite uses Rollup and ESBuild, rather than just use ESBuild for everything? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Found this: https://vitejs.dev/guide/api-plugin.html
|
Beta Was this translation helpful? Give feedback.
-
https://vitejs.dev/guide/why.html#why-not-bundle-with-esbuild might also provide more insights. Also pasted verbatim here for a self-contained reference:
|
Beta Was this translation helpful? Give feedback.
-
lol ))) when i think esbuild become must have tool and used instead webpack , there will be a our feature. but it comes feature today! Витаю Друже. (Congratulations friends) |
Beta Was this translation helpful? Give feedback.
-
Vite uses different bundlers: THE PROBLEMFirst and foremost you have different bundlers for these different environments which can make a mismatch behavior between the dev and production environments and you may see your app is not the same when shipping it to production |
Beta Was this translation helpful? Give feedback.
https://vitejs.dev/guide/why.html#why-not-bundle-with-esbuild might also provide more insights.
Also pasted verbatim here for a self-contained reference: