Skip to content

[Bug report] Vite ssr does not respect resolve coditions #1651

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

Closed
Mister-Hope opened this issue May 7, 2025 · 1 comment
Closed

[Bug report] Vite ssr does not respect resolve coditions #1651

Mister-Hope opened this issue May 7, 2025 · 1 comment
Assignees

Comments

@Mister-Hope
Copy link
Member

Mister-Hope commented May 7, 2025

Description

See main...condition-test

We add a test condition before webpack and vite condition defaults.

- Webpack vite
dev test-mjs ✔️ test-mjs ✔️
build test-mjs ✔️ node-mjs

Reproduction

https://github.com/vuepress/core/tree/condition-test

Used Package Manager

pnpm

System Info

not needed
@Mister-Hope
Copy link
Member Author

Oh, My fault.

By reading vites's source code, I found out Vite has a separate ssr.resolve.conditions option for its ssr

@Mister-Hope Mister-Hope closed this as not planned Won't fix, can't repro, duplicate, stale May 7, 2025
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

No branches or pull requests

2 participants