mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
fix(nuxt): clear vite-node
runner cache after each render (#6154)
This commit is contained in:
parent
25ac652652
commit
a585086c8b
@ -22,5 +22,6 @@ export default async (ssrContext) => {
|
|||||||
process.server = true
|
process.server = true
|
||||||
render = render || (await runner.executeFile(viteNodeOptions.entryPath)).default
|
render = render || (await runner.executeFile(viteNodeOptions.entryPath)).default
|
||||||
const result = await render(ssrContext)
|
const result = await render(ssrContext)
|
||||||
|
runner.moduleCache.clear()
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user