Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxt): clear vite-node runner cache after each render (#6154)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 26, 2022
1 parent 25ac652 commit a585086
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/runtime/vite-node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ export default async (ssrContext) => {
process.server = true
render = render || (await runner.executeFile(viteNodeOptions.entryPath)).default
const result = await render(ssrContext)
runner.moduleCache.clear()
return result
}

0 comments on commit a585086

Please sign in to comment.