fix broken imports and test newlines
This commit is contained in:
@@ -4,7 +4,8 @@ import Module from "module";
|
||||
import { inspect } from "util";
|
||||
import path from "path";
|
||||
import repl from "repl";
|
||||
import babel, { util } from "babel-core";
|
||||
import { util } from "babel-core";
|
||||
import * as babel from "babel-core";
|
||||
import vm from "vm";
|
||||
import _ from "lodash";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import commander from "commander";
|
||||
import { util, runtime } from "babel-core";
|
||||
import { util, buildExternalHelpers } from "babel-core";
|
||||
|
||||
commander.option("-l, --whitelist [whitelist]", "Whitelist of helpers to ONLY include", util.list);
|
||||
commander.option("-t, --output-type [type]", "Type of output (global|umd|var)", "global");
|
||||
@@ -7,4 +7,4 @@ commander.option("-t, --output-type [type]", "Type of output (global|umd|var)",
|
||||
commander.usage("[options]");
|
||||
commander.parse(process.argv);
|
||||
|
||||
console.log(runtime(commander.whitelist, commander.outputType));
|
||||
console.log(buildExternalHelpers(commander.whitelist, commander.outputType));
|
||||
|
||||
Reference in New Issue
Block a user