Skip to content

Commit 9954775

Browse files
committed
fix: pass rollup watch options when building in watch mode
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent e899bc7 commit 9954775

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vite/src/node/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ async function buildEnvironment(
736736
const watcher = watch({
737737
...rollupOptions,
738738
watch: {
739+
...rollupOptions.watch,
739740
...options.watch,
740741
chokidar: resolvedChokidarOptions,
741742
},

0 commit comments

Comments
 (0)