Skip to content

vite 3 bundle size is 6 times bigger than vite 2 #11162

Answered by chenxch
pwang2 asked this question in Q&A
Discussion options

You must be logged in to vote


By comparing the code, you will find that the file compiled by the vite3 version has become larger because it retains the variable judgment code that should be excluded from the original compilation. Check the document and find that the following changes have been made:
Migration from v2
process.env.* is now preserved in library mode

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@chenxch
Comment options

Answer selected by pwang2
Comment options

You must be logged in to vote
1 reply
@chenxch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants