Do not change --child_process path if it's absolute
This commit is contained in:
+2
-2
@@ -143,12 +143,12 @@ function bundle (input, complete) {
|
||||
var loader = function (deps, key) {
|
||||
var pathModule = global.require("path");
|
||||
var darr = [];
|
||||
var dir = global.require("path").dirname(process.execPath);
|
||||
var dir = pathModule.dirname(process.execPath);
|
||||
|
||||
process.argv[1] = key;
|
||||
|
||||
var argv3 = process.argv[3];
|
||||
if (argv3) {
|
||||
if (argv3 && /^(?!\/|\w+:)/.test(argv3)) {
|
||||
argv3 = pathModule.relative(pathModule.dirname(process.execPath), argv3);
|
||||
argv3 = pathModule.resolve(pathModule.dirname(key), argv3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user