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

generated source maps are broken #159

Open
Wonko7 opened this issue Jul 4, 2018 · 5 comments
Open

generated source maps are broken #159

Wonko7 opened this issue Jul 4, 2018 · 5 comments

Comments

@Wonko7
Copy link

Wonko7 commented Jul 4, 2018

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.

@demurgos
Copy link
Member

demurgos commented Jul 5, 2018

It may be related to a sourcemaps issue with subdirectories.

Can you try this workaround?

@Wonko7
Copy link
Author

Wonko7 commented Jul 5, 2018

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.

@demurgos
Copy link
Member

demurgos commented Jul 5, 2018

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.

@demurgos
Copy link
Member

Seems to be a duplicate of #64

@Herz3h
Copy link

Herz3h commented Oct 9, 2019

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.

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

3 participants