-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
dist/ember.prod.js has multiple sourcemap declarations, breaking sourcemap build #16881
Comments
Downgrading to |
Bug is still present in latest This effectively prevents us from upgrading, because our Sentry stack traces for |
0af6791 is the first bad commit
|
a day earlier #16482 was merged, which is likely the actual cause of this issue 🤔 |
Summary
The current npm version of
ember-source
, 3.3.1 (2018-09-07 update: issue remains in 3.4.0), contains the filedist/ember.prod.js
. This file contains multiple declarations of the form:According to the source map spec, there should only be one line of this form, at the end of the file.
Impact
This means any
vendor.js
file built with ember-cli will not have a valid sourcemap file.Please see #16844 for the error (the bug was erroneously closed as the issue was assumed to be with ember-cli, not ember-source).
Cause
Including multiple
sourceMappingURL
declarations inember.prod.js
causes issues for fast-sourcemap-concat (/lib/source-map.js#L91), since thesource-map-url
library only removes the first one.This is valid behaviour since there should only be one
sourceMappingURL
declaration per file.Suggested fix
Remove the extra
sourceMappingURL
lines fromdist/ember.prod.js
.References and similar issues
broccolijs/broccoli-concat#123
ef4/fast-sourcemap-concat#54
ember-cli/ember-fetch#120
The text was updated successfully, but these errors were encountered: