Fix —require

This commit is contained in:
Daniel Tschinder
2018-03-14 13:26:07 +01:00
parent 8317f8ab14
commit da2aea31f5
2 changed files with 16 additions and 2 deletions

View File

@@ -52,8 +52,8 @@ getV8Flags(function(err, v8Flags) {
case "-r":
case "--require":
args.push(babelArgs[index + 1]);
args.push(flag);
args.push(babelArgs[index + 1]);
delete babelArgs[index + 1];
break;