Skip to content

Commit 95020ab

Browse files
authored
fix: cache the runnable environment module runner (#18215)
1 parent fb292f2 commit 95020ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/vite/src/node/server/environments/runnableEnvironment.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class RunnableDevEnvironment extends DevEnvironment {
5454
this._runner = this._runnerFactory(this)
5555
return this._runner
5656
}
57-
return createServerModuleRunner(this)
57+
this._runner = createServerModuleRunner(this)
58+
return this._runner
5859
}
5960
}
6061

0 commit comments

Comments
 (0)