Skip to content

ref(sourcemaps): Remove SourceMapReference struct #2448

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

szokeasaurusrex
Copy link
Member

Following #2447, we no longer ever set the SourceMapReference struct's original_url field to any Some(_) value. This essentially makes the struct unnecessary, since we can just pass the URL values around as Strings.

Depends on:

…ources

Remove the branch from `guess_sourcemap_reference` which handles the case of there only being one sourcemap. If there are multiple minified souces, they would all (erroneously) end up associated with the same single sourcemap.

Fixes #2438
Following #2447, we no longer ever set the `SourceMapReference` struct's `original_url` field to any `Some(_)` value. This essentially makes the struct unnecessary, since we can just pass the URL values around as `String`s.

Depends on:
  - #2447
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/only-one-sourcemap branch 3 times, most recently from ff65a0b to 884faeb Compare May 14, 2025 12:14
Base automatically changed from szokeasaurusrex/only-one-sourcemap to master May 14, 2025 12:22
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.

2 participants