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
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.
Describe the bug
This appears to be a regression in Vite after
8.0.10. When usingvitewithexperimental.bundledDev: true, lazy loading in React can fail in dev mode.The same reproduction works correctly with Vite
8.0.10, but fails with Vite8.0.13.[email protected]example:2026-05-15.15.42.29.mov
With
[email protected], all lazy imports fail on the first click, but work correctly after a page refresh:2026-05-15.15.56.42.mov
If I disable
experimental.bundledDevin[email protected], everything works correctly.Reproduction
https://github.com/baevm/vite-rolldown-lazy-import-repro
Steps to reproduce
npm run dev[email protected]System Info
System: OS: macOS 15.6.1 CPU: (12) arm64 Apple M4 Pro Memory: 379.55 MB / 24.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.14.0 - /Users/baevm/.nvm/versions/node/v24.14.0/bin/node npm: 11.9.0 - /Users/baevm/.nvm/versions/node/v24.14.0/bin/npm pnpm: 10.17.1 - /opt/homebrew/bin/pnpm bun: 1.2.22 - /opt/homebrew/bin/bun Deno: 2.4.5 - /opt/homebrew/bin/deno Browsers: Chrome: 148.0.7778.168 Safari: 18.6 npmPackages: @vitejs/plugin-react: ^6.0.2 => 6.0.2 vite: 8.0.13 => 8.0.13Used Package Manager
npm
Logs
No response
Validations