({ execaNode, execa }, cwd, args, options)
| 40 | * @returns {import("execa").Result} child process |
| 41 | */ |
| 42 | const createProcess = ({ execaNode, execa }, cwd, args, options) => { |
| 43 | const { nodeOptions = [] } = options; |
| 44 | const processExecutor = nodeOptions.length ? execaNode : execa; |
| 45 | |
| 46 | return processExecutor( |
| 47 | typeof options.executorPath !== "undefined" ? options.executorPath : WEBPACK_PATH, |
| 48 | args || [], |
| 49 | { |
| 50 | cwd: path.resolve(cwd), |
| 51 | reject: false, |
| 52 | stdio: ENABLE_LOG_COMPILATION ? "inherit" : "pipe", |
| 53 | maxBuffer: Infinity, |
| 54 | ...options, |
| 55 | }, |
| 56 | ); |
| 57 | }; |
| 58 | |
| 59 | /** |
| 60 | * Run the webpack CLI for a test case. |
no outgoing calls
no test coverage detected