gulp-babel icon indicating copy to clipboard operation
gulp-babel copied to clipboard

ES5 transpiling issue, No output at all

Open ViswanathL opened this issue 5 years ago • 3 comments

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')); });

ViswanathL avatar Dec 02 '19 11:12 ViswanathL

You are mixing Babel 6 and Babel 7. Try using @babel/preset-env instead of es2015 in your Babel config.

nicolo-ribaudo avatar Dec 02 '19 11:12 nicolo-ribaudo

@nicolo-ribaudo I have tried @babel/preset-env and other options. Not working...

ViswanathL avatar Dec 02 '19 11:12 ViswanathL

Duplicate of #167

ghost avatar Jan 28 '20 16:01 ghost