fix broken imports and test newlines

This commit is contained in:
Sebastian McKenzie 2015-07-24 21:15:27 +01:00
parent 07e1ce8bf4
commit 9cb5006136
4 changed files with 7 additions and 3 deletions

View File

@ -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";

View File

@ -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));

View File

@ -4,5 +4,6 @@ var Test = (function () {
function Test() {
babelHelpers.classCallCheck(this, Test);
}
return Test;
})();

View File

@ -4,10 +4,12 @@ var IdenticalName = (function () {
function IdenticalName(x) {
return x;
}
return IdenticalName;
})();
(function () {
function foo() {}
return foo;
})();