Skip to content

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
@sapphi-red sapphi-red deleted the feat/ssr-resolve-mainfields branch November 13, 2024 10:50
moonlitusun pushed a commit to moonlitusun/vite that referenced this pull request May 25, 2025
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