fix: place _babel-node after process.execArgv (#12638)
Workaround https://github.com/nodejs/node/issues/36948
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user