Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES5 transpiling issue, No output at all #195

Open
ViswanathL opened this issue Dec 2, 2019 · 3 comments
Open

ES5 transpiling issue, No output at all #195

ViswanathL opened this issue Dec 2, 2019 · 3 comments

Comments

@ViswanathL
Copy link

ViswanathL commented Dec 2, 2019

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

@nicolo-ribaudo
Copy link
Member

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

@ViswanathL
Copy link
Author

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

@ghost
Copy link

ghost commented Jan 28, 2020

Duplicate of #167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants