diff --git a/.babelrc b/.babelrc new file mode 100644 index 000000000..62712ee2b --- /dev/null +++ b/.babelrc @@ -0,0 +1,12 @@ +{ + "comments": false, + "compact": true, + "optional": [ + "es7.asyncFunctions", + "es7.decorators", + "es7.functionBind", + "minification.deadCodeElimination", + "minification.inlineExpressions", + "runtime" + ] +} diff --git a/gulpfile.js b/gulpfile.js index efe0b6049..10296d3ef 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -49,15 +49,7 @@ gulp.task(function buildCoffee () { gulp.task(function buildEs6 () { return src('**/*.js') .pipe(sourceMaps.init()) - .pipe(babel({ - compact: PRODUCTION, - comments: false, - optional: [ - 'es7.asyncFunctions', - 'es7.decorators', - 'runtime' - ] - })) + .pipe(babel()) .pipe(sourceMaps.write('.')) .pipe(gulp.dest(DIST_DIR)) })