fix: place _babel-node after process.execArgv (#12638)

Workaround https://github.com/nodejs/node/issues/36948
This commit is contained in:
Huáng Jùnliàng
2021-01-18 15:15:03 -05:00
committed by GitHub
parent bc39a081f5
commit 6e8250a3a6
3 changed files with 12 additions and 1 deletions

View File

@@ -196,7 +196,7 @@ if (program.eval || program.print) {
// add back on node and concat the sliced args
process.argv = ["node"].concat(args);
process.execArgv.unshift(__filename);
process.execArgv.push(__filename);
Module.runMain();
} else {