From 6e38c037d58709bbd6e5ec044c3eb6e5c4dc1f9b Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 15 Sep 2015 06:10:52 +0100 Subject: [PATCH] removal redundant comments --- packages/babel-core/src/api/node.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/packages/babel-core/src/api/node.js b/packages/babel-core/src/api/node.js index 8a68053853..9816b1bc0e 100644 --- a/packages/babel-core/src/api/node.js +++ b/packages/babel-core/src/api/node.js @@ -18,20 +18,12 @@ export { version } from "../../package"; import * as t from "babel-types"; export { t as types }; -/** - * Register Babel and polyfill globally. - */ - export function register(opts?: Object) { var callback = require("./register/node-polyfill"); if (opts != null) callback(opts); return callback; } -/** - * Asynchronously transform `filename` with optional `opts`, calls `callback` when complete. - */ - export function transformFile(filename: string, opts?: Object, callback: Function) { if (isFunction(opts)) { callback = opts; @@ -55,19 +47,11 @@ export function transformFile(filename: string, opts?: Object, callback: Functio }); } -/** - * Synchronous form of `transformFile`. - */ - export function transformFileSync(filename: string, opts?: Object = {}) { opts.filename = filename; return transform(fs.readFileSync(filename, "utf8"), opts); } -/** - * Parse script with Babel's parser. - */ - export function parse(code, opts = {}) { opts.allowHashBang = true; opts.sourceType = "module";