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
In a monorepo project where both a package defined in the monorepo (consumer) and an external package (external-consumer) are consuming a shared package (common-package) that is defined in the monorepo, that shared package ends up being included twice in the dev server - once via pre-bundling, and once normally.
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
In a monorepo project where both a package defined in the monorepo (
consumer
) and an external package (external-consumer
) are consuming a shared package (common-package
) that is defined in the monorepo, that shared package ends up being included twice in the dev server - once via pre-bundling, and once normally.Reproduction
https://github.com/maxpatiiuk/vite-double-bundle
Steps to reproduce
npm install
cd packages/consumer
npx vite
common-library
logged twice.System Info
Also reproducible in Vite 5.4.10
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: