more architectural changes
This commit is contained in:
@@ -10,6 +10,4 @@ commander.option("-t, --output-type [type]", "Type of output (global|umd|var)",
|
||||
commander.usage("[options]");
|
||||
commander.parse(process.argv);
|
||||
|
||||
util.ensureTemplates().then(function () {
|
||||
console.log(runtime(commander.whitelist, commander.outputType));
|
||||
});
|
||||
console.log(runtime(commander.whitelist, commander.outputType));
|
||||
|
||||
@@ -35,7 +35,7 @@ exports.transform = function (filename, code, opts) {
|
||||
opts.ignore = null;
|
||||
opts.only = null;
|
||||
|
||||
var result = babel.__plsDontUseThis(code, opts);
|
||||
var result = babel.transform(code, opts);
|
||||
result.filename = filename;
|
||||
result.actual = code;
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user