add babel-polyfill to CLI
This commit is contained in:
parent
31e4d2e515
commit
6568aaa175
@ -9,6 +9,7 @@
|
||||
"preferGlobal": true,
|
||||
"dependencies": {
|
||||
"babel-core": "^5.6.21",
|
||||
"babel-polyfill": "^5.0.0",
|
||||
"chokidar": "^1.0.0",
|
||||
"commander": "^2.6.0",
|
||||
"convert-source-map": "^1.1.0",
|
||||
|
||||
@ -4,10 +4,12 @@ import Module from "module";
|
||||
import { inspect } from "util";
|
||||
import path from "path";
|
||||
import repl from "repl";
|
||||
import register from "babel-core/register";
|
||||
import { util } from "babel-core";
|
||||
import * as babel from "babel-core";
|
||||
import vm from "vm";
|
||||
import _ from "lodash";
|
||||
import "babel-polyfill";
|
||||
|
||||
let program = new commander.Command("babel-node");
|
||||
|
||||
@ -25,7 +27,7 @@ program.parse(process.argv);
|
||||
|
||||
//
|
||||
|
||||
babel.register({
|
||||
register({
|
||||
extensions: program.extensions,
|
||||
optional: program.optional,
|
||||
ignore: program.ignore,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user