Internal: remove comments (#3657)
This commit is contained in:
parent
ca27cf135d
commit
090f8cd10f
@ -1,6 +1,10 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"scripts": {
|
||||||
|
"test": "make test",
|
||||||
|
"build": "make build"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"async": "^1.5.0",
|
"async": "^1.5.0",
|
||||||
"babel-core": "^6.3.17",
|
"babel-core": "^6.3.17",
|
||||||
@ -45,6 +49,7 @@
|
|||||||
"uglify-js": "^2.4.16"
|
"uglify-js": "^2.4.16"
|
||||||
},
|
},
|
||||||
"babel": {
|
"babel": {
|
||||||
|
"comments": false,
|
||||||
"presets": [
|
"presets": [
|
||||||
"stage-0",
|
"stage-0",
|
||||||
"es2015-loose"
|
"es2015-loose"
|
||||||
|
|||||||
@ -1,16 +1,12 @@
|
|||||||
import isFunction from "lodash/isFunction";
|
import isFunction from "lodash/isFunction";
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
export { default as File } from "../transformation/file";
|
export { default as File } from "../transformation/file";
|
||||||
export { default as options } from "../transformation/file/options/config";
|
export { default as options } from "../transformation/file/options/config";
|
||||||
export { default as buildExternalHelpers } from "../tools/build-external-helpers";
|
export { default as buildExternalHelpers } from "../tools/build-external-helpers";
|
||||||
export { default as template } from "babel-template";
|
export { default as template } from "babel-template";
|
||||||
export { version } from "../../package";
|
export { version } from "../../package";
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
import * as util from "../util";
|
import * as util from "../util";
|
||||||
export { util };
|
export { util };
|
||||||
|
|
||||||
@ -30,8 +26,6 @@ export function Plugin(alias) {
|
|||||||
throw new Error(`The (${alias}) Babel 5 plugin is being run with Babel 6.`);
|
throw new Error(`The (${alias}) Babel 5 plugin is being run with Babel 6.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
import Pipeline from "../transformation/pipeline";
|
import Pipeline from "../transformation/pipeline";
|
||||||
export { Pipeline };
|
export { Pipeline };
|
||||||
|
|
||||||
@ -40,8 +34,6 @@ export let analyse = pipeline.analyse.bind(pipeline);
|
|||||||
export let transform = pipeline.transform.bind(pipeline);
|
export let transform = pipeline.transform.bind(pipeline);
|
||||||
export let transformFromAst = pipeline.transformFromAst.bind(pipeline);
|
export let transformFromAst = pipeline.transformFromAst.bind(pipeline);
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
export function transformFile(filename: string, opts?: Object, callback: Function) {
|
export function transformFile(filename: string, opts?: Object, callback: Function) {
|
||||||
if (isFunction(opts)) {
|
if (isFunction(opts)) {
|
||||||
callback = opts;
|
callback = opts;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user