Skip to content

Stop Vite from splitting out all shared components into separate modules? #138

Answered by ElMassimo
GabrielMahan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Gabriel!

There are several options, and they all come from Rollup which is what Vite uses to create the bundle.

You can provide options for Rollup in rollupOptions in your vite.config.ts file.

You will want to check the manualChunks option, and Vite's default strategy for the vendor chunk.

There are plenty of articles about configuring Rollup, but you could also try asking in the Vite.js discord in the #build channel.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ElMassimo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants