gulp-babel
gulp-babel copied to clipboard
generated source maps are broken
Hi all,
I can't seem to generate valid sourcemaps when using gulp-babel, please let me know if I'm missing something or got something wrong, but I think this is a bug.
You can reproduce this behaviour here: https://github.com/Wonko7/gulp-babel-bug-report
Using gulp-babel 8.0.0-beta.2 to build a project produces incorrect sourcemaps, whereas calling babel manually on each js file works.
If you need anything else let me know.
Thanks @demurgos but it didn't work, I tried your fix here: https://github.com/Wonko7/gulp-babel-bug-report/blob/sourceRoot/gulpfile.babel.js Let me know if I did it wrong.
You applied it properly, so it seems it is not related to the issue I linked.
I am not on my dev computer right now so I can't run your repro (BTW, thanks: it's great to have it). I'll try to look at it later. If you find something yourself, please leave a comment.
Seems to be a duplicate of #64
I have this problem aswell (using only gulp-babel along with gulp-sourcemaps), and the generated sourcemaps open properly in the browser, however they are desynced with original code. I'm using @babel/plugin-transform-async-to-generator for async/await support.