🐶 🍲
This commit is contained in:
@@ -9,9 +9,9 @@ const watch = require("gulp-watch");
|
||||
const gutil = require("gulp-util");
|
||||
const gulp = require("gulp");
|
||||
const path = require("path");
|
||||
const babelConfig = require("./.babelrc");
|
||||
|
||||
const scripts = "./packages/*/src/**/*.js";
|
||||
|
||||
let srcEx, libFragment;
|
||||
|
||||
if (path.win32 === path) {
|
||||
@@ -39,7 +39,7 @@ gulp.task("build", function () {
|
||||
gutil.log("Compiling", "'" + chalk.cyan(file.path) + "'...");
|
||||
callback(null, file);
|
||||
}))
|
||||
.pipe(babel())
|
||||
.pipe(babel(babelConfig))
|
||||
.pipe(through.obj(function (file, enc, callback) {
|
||||
file._path = file.path;
|
||||
file.path = mapToDest(file.path);
|
||||
@@ -67,7 +67,7 @@ gulp.task("build-watch", function () {
|
||||
gutil.log("Compiling", "'" + chalk.cyan(file._path) + "'...");
|
||||
callback(null, file);
|
||||
}))
|
||||
.pipe(babel())
|
||||
.pipe(babel(babelConfig))
|
||||
.pipe(gulp.dest(dest));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user