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

Simplify source content handling #6286

Merged
merged 4 commits into from
May 16, 2021

Conversation

devongovett
Copy link
Member

Goes into #6238. Opened a separate PR for feedback. Basically removed asset.getSourcesContent and set the source content in core.

Also I think we don't need to extract the source content from existing source maps because map.extends should handle copying over the correct source content from the original map. We only need to set the source content if there was no original map. Could be wrong though. Maybe we should add an integration test for this.

@height
Copy link

height bot commented May 15, 2021

Link Height tasks by mentioning a task ID in the pull request title or description, commit messages, or comments.

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@parcel-benchmark
Copy link

parcel-benchmark commented May 15, 2021

Benchmark Results

Kitchen Sink 🚨

Timings

Description Time Difference
Cold FAILED -0.00ms
Cached FAILED -0.00ms

Cold Bundles

No bundles found, this is probably a failed build...

Cached Bundles

No bundles found, this is probably a failed build...

React HackerNews 🚨

Timings

Description Time Difference
Cold FAILED -0.00ms
Cached FAILED -0.00ms

Cold Bundles

No bundles found, this is probably a failed build...

Cached Bundles

No bundles found, this is probably a failed build...

AtlasKit Editor 🚨

Timings

Description Time Difference
Cold FAILED -0.00ms
Cached FAILED -0.00ms

Cold Bundles

No bundles found, this is probably a failed build...

Cached Bundles

No bundles found, this is probably a failed build...

Three.js 🚨

Timings

Description Time Difference
Cold FAILED -0.00ms
Cached FAILED -0.00ms

Cold Bundles

No bundles found, this is probably a failed build...

Cached Bundles

No bundles found, this is probably a failed build...

Click here to view a detailed benchmark overview.

…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
@DeMoorJasper DeMoorJasper merged commit d2f4f86 into wbinnssmith/swc-babel-remap-asts May 16, 2021
@DeMoorJasper DeMoorJasper deleted the sourcemap-cleanup branch May 16, 2021 19:02
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

Successfully merging this pull request may close these issues.

3 participants