Skip to content

ref(sourcemaps): Remove SourceMapReference struct#2448

Closed
szokeasaurusrex wants to merge 2 commits intomasterfrom
szokeasaurusrex/remove-sourcemap-reference
Closed

ref(sourcemaps): Remove SourceMapReference struct#2448
szokeasaurusrex wants to merge 2 commits intomasterfrom
szokeasaurusrex/remove-sourcemap-reference

Conversation

@szokeasaurusrex
Copy link
Copy Markdown
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
@szokeasaurusrex
Copy link
Copy Markdown
Member Author

#2447 was changed between this PR being opened and that PR being merged; now we in fact still need the SourceMapReference struct, so I will close this PR

@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/remove-sourcemap-reference branch June 3, 2025 13:58
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