-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
feat(nuxt): resolve unresolved paths within node_modules
#22478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Co-authored-by: pooya parsa <pyapar@gmail.com>
/ecosystem-ci run |
π Ran ecosystem CI: Open
|
// TODO: respect nitro runtime conditions | ||
conditions: options.ssr ? ['node', 'import', 'require'] : ['import', 'require'] | ||
}).catch(() => { | ||
console.log('[nuxt] Could not resolve id', id, importer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some plugins like Vue Macros will try to resolve multiple times, until successfully. In nuxt, it will warn and could disturb on userland.
Can we change it from log
to debug
level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense to me.
π Linked issue
#14146
β Type of change
π Description
This adds a resolve step to resolve paths deeply within
node_modules
which cannot otherwise be resolved.In my testing, this enables use with vite and without shamefully-hoist, as long as
vue
andvue-router
are explicitly installed (as they are in vite'soptimizeDeps.include
).π Checklist