UNPKG

597 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Fork = void 0;
4const child_process_1 = require("child_process");
5var Fork;
6(function (Fork) {
7 function fork(env) {
8 return (0, child_process_1.spawn)(process.execPath, [...process.execArgv, ...process.argv.slice(1)], {
9 windowsHide: true,
10 stdio: ["ignore", "ignore", "pipe", "pipe"],
11 env: {
12 ...process.env,
13 ...env
14 }
15 });
16 }
17 Fork.fork = fork;
18})(Fork = exports.Fork || (exports.Fork = {}));