fix: use SourceMapSource in js side to support map method#7828
Merged
Conversation
✅ Deploy Preview for rspack canceled.
|
5eed549 to
7e3d36d
Compare
bcf2854 to
17a388b
Compare
Member
Author
|
!bench |
|
📝 Benchmark detail: Open
|
h-a-n-a
reviewed
Sep 18, 2024
h-a-n-a
reviewed
Sep 18, 2024
Contributor
|
Most part of this PR is a refactor and due to this PR including a fix, I would recommend you to use 'fix' as the title. |
h-a-n-a
approved these changes
Sep 18, 2024
JSerFeng
pushed a commit
that referenced
this pull request
Sep 29, 2024
* feat: rm CompatSource * perf: use String directly is better perf than Buffer * perf: lazy parse source.map
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
CompatSourcein Rust is unnecessary and can be simplified. Below are the steps detailing the changes for converting between Rust and JavaScript sources.Rust to JavaScript
RawSource.SourceMapSource.JavaScript to Rust
Fix: #7891
Checklist