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: support esm ssr build #707

Closed
wants to merge 4 commits into from
Closed

feat: support esm ssr build #707

wants to merge 4 commits into from

Conversation

antfu
Copy link
Member

@antfu antfu commented Jun 3, 2022

In Vite v3 we now default to emit ESM build for SSR. This PR enables the ability it uses ESM build when available and fallback to CJS build when it's in Vite v2.

So we don't need this workaround in Vite 3
https://github.com/vitejs/vite/blob/f8c92d1f4c1bddb6c29cfd4753079157c4d96922/docs/vite.config.ts#L4-L6

.gitignore Show resolved Hide resolved
@antfu
Copy link
Member Author

antfu commented Jun 30, 2022

close in favor of #856

@antfu antfu closed this Jun 30, 2022
@brc-dd brc-dd deleted the feat/esm-ssr branch June 30, 2022 05:23
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants