-
-
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
Sourcemaps not mapping all the way back to originals #108
Comments
I'm getting the same issue. It tells me that there is an |
@parkroolucas When you say "fixes this issue", do you mean the whole issue is resolved by doing that, or do you mean the sourcemaps start working again but without minification? |
@thany My gulpfile compiles ES6 code into browser-recognisable JavaScript, and aso minifies it. If I remove |
Ok, then your situation is different from mine. I'm using only the babili plugin. So I'm not converting to ES5. I write ES6, and support only modern browsers. So I can't just do away with gulp-babel... |
We're having what appears to be the same problem, only we have I was kinda hoping this would've been fixed when I tried today, since the issue has been around since early 2017. Has there been any progress on this since then? I've been thinking of leaving sourcemaps off in production, but we use Sentry for error tracking, and the stacktrace is pretty useless without sourcemaps :( |
@n2liquid Make sure you're using |
@loganfsmyth, I'll be doing that right away. Thanks! |
@loganfsmyth, yes, we're using Here you go: https://files.n2.gs/index.php/s/8NeipCOUkvsHzr8/download
Expected outcome:
Got:
Notes:
|
I'm using
gulp-babel
with thebabili
plugin, and thegulp-requirejs-optimize
module to concat files.Here's the relevant part of how I'm calling it:
So
main.js
is the entry point for my sources, which uses requirejs to include all the other files. Works great. But the problem is, the resulting sourcemaps only includes the entry point, not any of the other files.This might look like a problem in gulp-requirejs-optimize, but when I leave out babel entirely, the sourcemaps are perfect. So I must conclude that babel is interfering somewhere that messes them up. I can leave out the babili plugin as well and call babel without any presets - same result.
I've also used source-map-explorer to try and visualize the sourcemaps, and it says:
Versions used:
The text was updated successfully, but these errors were encountered: