Skip to content

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Nov 17, 2025

We were adding several node_module dirs (including workspace) to all resolutions, a requirement inherited from Nuxt to allow modules with non-hoisted dependencies to work.

Removing extra node_modules can significantly help to reduce resolution times and also avoid wrong behaviors like picking dependencies from directories outside.

If previous behavior is needed for any reason, users can directly configure nodeModulesDirs

@vercel
Copy link

vercel bot commented Nov 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
nitro.build Ready Ready Preview Comment Nov 17, 2025 0:54am

@pi0 pi0 force-pushed the perf/extra-module-dirs branch from 6625aad to ebd447e Compare November 17, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants