gulp-babel
gulp-babel copied to clipboard
ES5 transpiling issue, No output at all
No output or error is given on gulp-babel during gulp task
Below are the package versions
"@babel/core": "7.7.4", "@babel/preset-env": "7.7.4", "babel-preset-es2015": "^6.24.1", "babel-register": "^6.26.0", "gulp": "4.0.2", "gulp-babel": "8.0.0", "gulp-cli": "^2.0.1",
Usage
gulp.task('obfuscate', async () => { return gulp .src([ 'index.js', ]) .pipe(babel({ presets: ['es2015'], compact: true })) .pipe(gulp.dest('dist')); });
You are mixing Babel 6 and Babel 7. Try using @babel/preset-env
instead of es2015
in your Babel config.
@nicolo-ribaudo I have tried @babel/preset-env
and other options. Not working...
Duplicate of #167