Skip to content

fix(server): harden DevEnvironment init/close lifecycle - #24203

Open
btea wants to merge 1 commit into
vitejs:mainfrom
btea:fix/dev-environment-init-close-lifecycle
Open

btea wants to merge 1 commit into
vitejs:mainfrom
btea:fix/dev-environment-init-close-lifecycle

Conversation

@btea

@btea btea commented Nov 24, 2026

Copy link
Copy Markdown
Contributor
  • close() awaits an in-flight init() so the plugin container it creates is closed instead of leaking
  • init() is a no-op once the environment started closing
  • a failed init() resets its guard so it can be retried

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant