-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
fix: use inline source maps when present in js #8995
fix: use inline source maps when present in js #8995
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good... kind of sorta what I had in mind that I was going to start until you tortured me with Streams. It should be easy to continue to iterate on it.
Still some test errors, so holding off approval.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though one stray debug statement
This PR also fixes source_line mapping, because currently it was making some wrong (but up to now correct) assumptions about where to get the source map info from. This has been corrected. The order of priority for source line info is now 1. the inline source map sourcesContent, 2. the module graph, and 3. the original source_line form the transpiled code.
Towards #4499.