MCPcopy Index your code
hub / github.com/remoteinterview/zero / bundleNode

Function bundleNode

packages/builder-react/bundler/index.js:39–53  ·  view source on GitHub ↗
(componentPath, fullBundlePath, basePath, bundlePath)

Source from the content-addressed store, hash-verified

37process.on("SIGTERM", cleanProcess);
38
39function bundleNode(componentPath, fullBundlePath, basePath, bundlePath) {
40 return new Promise((resolve, reject) => {
41 const parameters = [componentPath, fullBundlePath, basePath, bundlePath];
42
43 const options = {
44 stdio: [0, 1, 2, "ipc"]
45 };
46
47 childProcess = fork(require.resolve("./bundleNode"), parameters, options);
48 // process doesn't exit in watch mode.
49 childProcess.on("message", data => {
50 resolve();
51 });
52 });
53}
54
55module.exports = bundler;

Callers 1

bundlerFunction · 0.70

Calls 3

resolveFunction · 0.85
resolveMethod · 0.80
onMethod · 0.45

Tested by

no test coverage detected