Skip to content

fix(ssr): use globalThis.Object in ssr transform code #19997

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hi-ogawa
Copy link
Collaborator

@hi-ogawa hi-ogawa commented May 3, 2025

Description

Also raising this as an alternative of #19996. However, this now breaks const globalThis. We can probably say both are edge cases, but then I'm not sure which edge case to prefer over another. That's why I would prefer going with breaking change on Vite 7.

@hi-ogawa
Copy link
Collaborator Author

hi-ogawa commented May 3, 2025

/ecosystem-ci run

Copy link

pkg-pr-new bot commented May 3, 2025

Open in StackBlitz

npm i https://pkg.pr.new/vite@19997

commit: d94e7b2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant