MCPcopy Create free account
hub / github.com/webpack/webpack-cli / #needWatchStdin

Method #needWatchStdin

packages/webpack-cli/src/webpack-cli.ts:3459–3467  ·  view source on GitHub ↗
(compiler: Compiler | MultiCompiler)

Source from the content-addressed store, hash-verified

3457 }
3458
3459 #needWatchStdin(compiler: Compiler | MultiCompiler): boolean {
3460 if (this.isMultipleCompiler(compiler)) {
3461 return Boolean(
3462 compiler.compilers.some((compiler: Compiler) => compiler.options.watchOptions?.stdin),
3463 );
3464 }
3465
3466 return Boolean(compiler.options.watchOptions?.stdin);
3467 }
3468
3469 async runWebpack(options: Options, isWatchCommand: boolean): Promise<void> {
3470 let compiler: Compiler | MultiCompiler;

Callers 2

WebpackCLIClass · 0.95
runWebpackMethod · 0.95

Calls 1

isMultipleCompilerMethod · 0.95

Tested by

no test coverage detected