How to use vite's rolldownOptions.output.codeSplitting with vike?
#3227
|
Hi! I was trying to configure codeSplitting on vike with vite 8 like so: And I get this warning when running build: The reason I configured this is because I got a warning about chunk size over 500 KB, so wanted to optimize. And I'm not sure if it's safe to run without it working? Maybe could vike support codeSplitting when running under vite 8?
|
Replies: 2 comments 14 replies
|
The warning means Rolldown's That matters for Vike because Vike currently installs a If the only motivation is the 500 KB chunk warning, I would first consider route-level dynamic imports or raising |
|
Vike uses With Rolldown this may or may not be necessary anymore. So, if you don't see duplicated CSS in your production bundle, then you're good. I might go ahead and disable |
Good catch, I didn't see that.
Implemented:
Pre-released as
0.4.258-commit-24a5c2b. Let me know that version works for you.