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
After upgrading to Nuxt 4.2.0, it seems that vite.optimizeDeps.include no longer takes effect.
Even when certain dependencies are listed there, Vite still prints messages like:
✨ new dependencies optimized: xxx
This indicates that the dependencies are being optimized again, ignoring the include configuration.
In Nuxt 4.1.2, the same configuration works correctly — dependencies listed in
vite.optimizeDeps.include are respected and no extra optimization messages appear.
No reproduction provided — this issue is mainly to check if others are seeing the same behavior after upgrading.
Expected behavior
vite.optimizeDeps.include should prevent redundant optimization of already-included dependencies.
Actual behavior
The configuration seems to be ignored in Nuxt 4.2.0, causing unnecessary dependency optimization messages.
Environment
Nuxt version: 4.2.0
Node version: 22.20.0
Package manager: pnpm
OS: macOS
Additional context
Downgrading back to Nuxt 4.1.2 resolves the problem — the same vite.optimizeDeps.include config works fine there.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
After upgrading to Nuxt 4.2.0, it seems that vite.optimizeDeps.include no longer takes effect.
Even when certain dependencies are listed there, Vite still prints messages like:
✨ new dependencies optimized: xxx
This indicates that the dependencies are being optimized again, ignoring the include configuration.
In Nuxt 4.1.2, the same configuration works correctly — dependencies listed in
vite.optimizeDeps.include are respected and no extra optimization messages appear.
No reproduction provided — this issue is mainly to check if others are seeing the same behavior after upgrading.
Expected behavior
vite.optimizeDeps.include should prevent redundant optimization of already-included dependencies.
Actual behavior
The configuration seems to be ignored in Nuxt 4.2.0, causing unnecessary dependency optimization messages.
Environment
Nuxt version: 4.2.0
Node version: 22.20.0
Package manager: pnpm
OS: macOS
Additional context
Downgrading back to Nuxt 4.1.2 resolves the problem — the same vite.optimizeDeps.include config works fine there.
Beta Was this translation helpful? Give feedback.
All reactions