-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
ssr.optimizeDeps.include
with dep1 > dep2
syntax not working
#16405
Comments
When I debug this locally, it looks like
vite/packages/vite/src/node/optimizer/index.ts Lines 843 to 856 in f8e0791
which in turn is coming from the condition vite/packages/vite/src/node/plugins/resolve.ts Lines 868 to 890 in f8e0791
|
Describe the bug
Spinned off from the comment here by @frandiox #16293 (comment), it looks like
ssr.optimizeDeps.include: ['dep1 > dep2']
is not working.For example, when adding
@remix-run/server-runtime > cookie
, the deps optimizer seems to reject it by:Reproduction
https://github.com/hi-ogawa/reproductions/tree/main/vite-ssr-optimizedeps-include-deep
https://stackblitz.com/github/hi-ogawa/reproductions/tree/main/vite-ssr-optimizedeps-include-deep
Steps to reproduce
Show error logs
In this reproduction, I have
noExternal: true
to see the clear error. When removingnoExternal: true
,cookie
is externalized, so there's no error, but the same deps optimizer logs come up:System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: