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

feat: add ssr.resolve.mainFields option #18646

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

sapphi-red
Copy link
Member

Description

In #18395, we made resolve.mainFields not to be used for no-externalized dependencies in SSR. To achieve that behavior, users now have to reach out to the Environment API (environments.ssr.resolve.mainFields).

To avoid that happening, this PR adds ssr.resolve.mainFields option that is similar to ssr.resolve.conditions.

refs vitest-dev/vitest#6896

@sapphi-red sapphi-red added feat: ssr p3-downstream-blocker Blocking the downstream ecosystem to work properly (priority) labels Nov 12, 2024
@sapphi-red
Copy link
Member Author

OK. Let's merge this one 👍

@sapphi-red sapphi-red merged commit a6f5f5b into vitejs:main Nov 13, 2024
13 of 17 checks passed
@sapphi-red sapphi-red deleted the feat/ssr-resolve-mainfields branch November 13, 2024 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: ssr p3-downstream-blocker Blocking the downstream ecosystem to work properly (priority)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants