fix broken imports and test newlines
This commit is contained in:
parent
07e1ce8bf4
commit
9cb5006136
@ -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));
|
||||
|
||||
@ -4,5 +4,6 @@ var Test = (function () {
|
||||
function Test() {
|
||||
babelHelpers.classCallCheck(this, Test);
|
||||
}
|
||||
|
||||
return Test;
|
||||
})();
|
||||
|
||||
@ -4,10 +4,12 @@ var IdenticalName = (function () {
|
||||
function IdenticalName(x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
return IdenticalName;
|
||||
})();
|
||||
|
||||
(function () {
|
||||
function foo() {}
|
||||
|
||||
return foo;
|
||||
})();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user