fix(plugin/vite-resolve): external was serialized incorrectly#4270
Merged
Conversation
✅ Deploy Preview for rolldown-rs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
13ff918 to
caad3d9
Compare
caad3d9 to
9a36f69
Compare
Contributor
Benchmarks Rust |
hyf0
approved these changes
Apr 23, 2025
github-merge-queue bot
pushed a commit
that referenced
this pull request
Apr 23, 2025
<!-- Thank you for contributing! --> ### Description Ported changes from the following PRs: - vitejs/vite#18889 - vitejs/vite#19300 - vitejs/vite#18584, vitejs/vite#19312 and some minor changes. With this PR and #4270, the tests in Vite repo should now pass with native resolve plugin. <!-- Please insert your description here and provide especially info about the "what" this PR is solving --> --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jul 8, 2025
Similar to #4270, but for `BindingHookSideEffects`.
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.
Description
Moved the type conversion logic to rust side so that
BindingResolvedExternalis serialized to string or boolean directly rather than via a temporary object.The alternative way would be to wrap each hook and run
transformResolvedExternalhere for callable plugins.rolldown/packages/rolldown/src/builtin-plugin/utils.ts
Lines 21 to 24 in f386130