I am using babel to create my gulpfile.babel.js
I am using this code to dynamically include the modules and importing tasks it was working in babel 5.8.x but after upgrading to 6.3.x it stop working
I am not being able to figure out which plugin i am missing please help. Please assume the code below does not contains typo error.
I am using
"babel-preset-es2015": "^6.3.13"
"gulp-babel": "^6.1.1"
.babelrc content
{
"presets": ["es2015"]
}
gulp:
import gulp from "gulp";
import del from "del";
import { default as runSequence} from "run-sequence";
let basePath = "modules/";
['filename1', 'filename2'].forEach((moduleName) => {
require(`./${basePath}${moduleName}`).apply(this, [gulp, runSequence, del]);
});
// Tasks are defined in the modules 'required' above
my filenameX.js file look like this
export default function(gulp, runSequence, del) {
gulp.task("clean", del.bind(null, ["./temp/"]));
}