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

Commit

Permalink
fix(vite-node): clear cache after each render
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 26, 2022
1 parent 25ac652 commit ac5b81b
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 ac5b81b

Please sign in to comment.