Skip to content
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

fix: fix ssr.optimizeDeps.include with dep1 > dep2 syntax #16408

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hi-ogawa
Copy link
Collaborator

@hi-ogawa hi-ogawa commented Apr 12, 2024

Description

I'm not totally sure if this is a right fix, but it seems to work when testing a patch locally. Let me check with CI.

Considering ssr deps optimization is only done by resolving explicitly specified include, I'm not sure what's the purpose of __vite_skip_optimization. Could someone explain what's the idea behind this?

Copy link

stackblitz bot commented Apr 12, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@@ -26,6 +26,7 @@
"@vitejs/test-non-optimized-with-nested-external": "workspace:*",
"@vitejs/test-optimized-with-nested-external": "file:./optimized-with-nested-external",
"@vitejs/test-optimized-cjs-with-nested-external": "file:./optimized-with-nested-external",
"@vitejs/test-nested-exclude": "file:./nested-exclude",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the test case, I copied the same fixture used in playground/optimize-deps

"@vitejs/test-nested-exclude": "file:./nested-exclude",

@hi-ogawa hi-ogawa marked this pull request as ready for review April 12, 2024 10:32
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.

ssr.optimizeDeps.include with dep1 > dep2 syntax not working
1 participant