nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.85k stars 153 forks source link

Avoid `nitropack` (type) dependency for `@nuxt/devtools` #571

Closed pi0 closed 8 months ago

pi0 commented 8 months ago

Hi. Opening this issue as spotted random peer dependency issues a couple of times originating from the nitropack dependency in @nuxt/devtools in the dependency tree.

Having extra dependencies of core packages such as vite or nitropack often can contribute to more package manager hoisting issues and unpredictable warns.

Quickly searching across repo it seems it is only used as a type dependency. In similar situations (like @nuxt/schema) we add them to build.externals (seems you also already did!) and simply keep nitropack as a devDependency

arashsheyda commented 8 months ago

I think that applies for h3 and ofetch too?