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

Commit

Permalink
explicitly disable hmr for vite-server
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 25, 2022
1 parent a453e0b commit b64868e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export async function buildServer (ctx: ViteBuildContext) {
},
server: {
// https://github.com/vitest-dev/vitest/issues/229#issuecomment-1002685027
preTransformRequests: false
preTransformRequests: false,
hmr: false
},
plugins: [
cacheDirPlugin(ctx.nuxt.options.rootDir, 'server'),
Expand Down

0 comments on commit b64868e

Please sign in to comment.