-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Gulp babel not transpiling to es5 #167
Comments
I have the same issue I got no files being created nor do I get any error by the task where babel runs. For completeness I've include my code below. packages.js
Task:
|
I'm also seeing this behaviour with a similar setup to @vincentGustav's. |
I'm also have this issue to @vincentGustav . |
I also had this probleem but wrapping it in a second array will fix it,
|
I experienced the same issue and could not get this working, even with the solution @ArnoMandersTfe has kindly provided. Here is a Stack Overflow thread on this problem: https://stackoverflow.com/questions/52599370/gulp-babel-dont-produce-any-output-file-or-doesnt-work-properly I could only get gulp-babel to work by using the Babel 6 install as outlined in the readme |
@vincentGustav I have a similar setup and I was able to resolve the issue by replacing the |
The reason is because of the preset and installed dependency is wrong.
You need to install babel-preset-env |
Was anyone able to find a solution? The above merge updated from Which is what I have been using, but I still get just a minified file with all
|
I too could only get gulp-babel to work by using the Babel 6 install as outlined in the readme:
With this, you'll have |
I have these issues as well. Gulp doesn't seem to use preset-env. I tried multiple variations with @babel/env, babel-preset-env & @babel/preset-env. For some reason it seems to work now. I was using windows 10 earlier. Now I am home and use fedora. I just thought, maybe it is the node version I am using; 10.16.0. Pretty sure I have 12 installed on the windows machine. Even tho in electron itself it is 12 again!? Now I'm confused. Here it is, maybe its useful to someone: package.json
gulp
|
No output here too on some files. Tried to downgrade gulp-babel but dependencies were broken. |
Modified the gulp-babel code and logged the error on console. There was a JavaScript parsing error in babel in my case. The this.emit(error) call is not output to console nor does it interrupt the gulp processing. This is not ideal for analyzing issues. |
Has anyone figured this problem out yet? I'm also getting ES6 output from using gulp-babel. package.json:"babel": { gulp.js:const gulp = require('gulp'); const config = { function buildBundle() { function buildPageScripts(done) {
} And in the output I still get things like node.closest() and Array.from(). Halp! |
Wow I really don't know why my comment looks all janky like that. Sorry guys! I tried to fix it... |
Still not working. PACKAGE.JSON
TASK
Excerpt that was not transpiled
The Promisse should be transpiled to ie10, since are one of my target. |
Same here, using webpack 4 + babel-loader with same dependencies works out of the box, gulp-babel is a no go for any version/presets/plugins combinations. Files get moved to dest but they are not transpilled . No errors either. |
For us it turned out the issue wasn't directly related to gulp-babel, but that our browserslist was no longer transpilling down for IE11 (which has now hit |
I'm struggling to get gulp-babel to do a simple transpile a file with occurrences of I would be grateful to see a recipe that transpiles I've tried adding the babel preset and a browserslist but the output from the transpile is a file that still has .browserslistrc
|
Thought I'd leave my two cents in here. Started a nearly bearbones project and gulp-babel refuses to do anything. Every other step in my gulp pipeline operates successfully, only the babel() command doesn't do anything, even though I'm using
The suggestion to switch to
I know that maintaining these open-source projects for no money whatsoever is a pain in the ass, but there are a lot of people that are relying on this module for their projects. I believe we'd all greatly appreciate a fix, or at least start logging the errors in the code ;) |
Ok, don´t know if it´s of any help but I can share my debug process
So... I don´t know where the I got the core property? And another issue is ¿why it doesn´t show any message? |
|
yarn add -D @babel/preset-env work for me |
Worked here, but babel added some require('s at the start of the file, which is why I see it worked, so I pressume you'll need to get rollup in the mix to resolve the requires? |
I installed gulp babel (and dependencies) and when running gulp, same es6 code is being output in dist. I tried adding .babelrc to specify preset as well as specifying preset in gulp.
Is there anything I am missing?
gulpfile
.babelrc
package.json
The text was updated successfully, but these errors were encountered: