babel/packages/babel-cli/src/babel-external-helpers.js
2015-07-24 21:10:11 +01:00

11 lines
399 B
JavaScript
Executable File

import commander from "commander";
import { util, runtime } 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");
commander.usage("[options]");
commander.parse(process.argv);
console.log(runtime(commander.whitelist, commander.outputType));