Skip to content

Commit

Permalink
fix(vite): destroy the runner when runnable environment is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Oct 4, 2024
1 parent 2c5f948 commit cb762a5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ class RunnableDevEnvironment extends DevEnvironment {
this._runner = createServerModuleRunner(this)
return this._runner
}

override async close(): Promise<void> {
await super.close()
if (this._runner) {
this._runner.destroy()
}
}
}

export type { RunnableDevEnvironment }

0 comments on commit cb762a5

Please sign in to comment.