Skip to content

Commit

Permalink
fix(vite): disable server.watch for child compiler during build (#8320
Browse files Browse the repository at this point in the history
)

Co-authored-by: Mark Dalgleish <[email protected]>
  • Loading branch information
hi-ogawa and markdalgleish authored Dec 21, 2023
1 parent 3593c35 commit 1e7b07b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/remix-dev/vite/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ export const remixVitePlugin: RemixVitePlugin = (options = {}) => {
...viteUserConfig,
mode: viteConfig.mode,
server: {
watch: viteConfig.command === "build" ? null : undefined,
preTransformRequests: false,
hmr: false,
},
Expand Down

0 comments on commit 1e7b07b

Please sign in to comment.