You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To bundle together common dependencies (e.g. react and react-dom) that may not change often, it's common to use the manualChunks build option for rollup. However doing so will cause the build command to error when the --ssr flag is passed.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
We use the plugin to work around a bug in Vite 2 which has been fixed in
Vite 3 that breaks the SSR build if the manualChunks Rollup config is
used.
See vitejs/vite#8836
Describe the bug
To bundle together common dependencies (e.g.
react
andreact-dom
) that may not change often, it's common to use themanualChunks
build option for rollup. However doing so will cause the build command to error when the--ssr
flag is passed.Reproduction
https://github.com/Kingdutch/vite-ssr-manualchunks-repro
System Info
Used Package Manager
yarn
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: