Skip to content

Commit e892f48

Browse files
authored
fix: vite build and prepare (#5948)
1 parent 08685ca commit e892f48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/bundler/bundler-compiler-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export class BundlerCompilerService
453453
const envParams = isVite
454454
? [
455455
`--mode=${prepareData.release ? "production" : "development"}`,
456-
`--watch`,
456+
...(prepareData.watch ? [`--watch`] : []),
457457
"--",
458458
...cliArgs,
459459
]
@@ -483,7 +483,7 @@ export class BundlerCompilerService
483483
}
484484
}
485485

486-
const stdio = prepareData.watch || isVite ? ["ipc"] : "inherit";
486+
const stdio = prepareData.watch ? ["ipc"] : "inherit";
487487
const options: { [key: string]: any } = {
488488
cwd: projectData.projectDir,
489489
stdio,

0 commit comments

Comments
 (0)