-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Remap diagnostics and other source locations using input source map #6288
Conversation
This pull request has been linked to and will mark 1 task as "Done" when merged:
|
Benchmark ResultsKitchen Sink 🚨
Timings
Cold BundlesNo bundles found, this is probably a failed build... Cached BundlesNo bundles found, this is probably a failed build... React HackerNews 🚨
Timings
Cold BundlesNo bundles found, this is probably a failed build... Cached BundlesNo bundles found, this is probably a failed build... AtlasKit Editor 🚨
Timings
Cold BundlesNo bundles found, this is probably a failed build... Cached BundlesNo bundles found, this is probably a failed build... Three.js 🚨
Timings
Cold BundlesNo bundles found, this is probably a failed build... Cached BundlesNo bundles found, this is probably a failed build... |
One variant to move this into core:
|
* Simplify source content handling * Copy over source content from original map in babel transformer * Don't store a source map in the graph * Remap diagnostics and other source locations using input source map (#6288) * Remap diagnostics and other source locations using input source map * Fix flow * Ignore test in flow config * Move to util, apply in CSS transformer as well
Based on #6286 and #6238.
Fixes T-1063
This attempts to remap source locations used in diagnostics, dependencies, and symbols using the input source map. This could come from Babel or another transformer that runs before SWC, or an original source map e.g. a library with a source map. This second one is a bit questionable potentially?
Question: should this be done in core so it applies to all transformers?