feat(core): support source.transformImport#1124
Merged
Merged
Conversation
Rsdoctor Bundle Diff AnalysisFound 12 projects in monorepo, 2 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 adapter-rsbuildPath:
📦 Download Diff Report: adapter-rsbuild Bundle Diff 📁 adapter-rslibPath:
📦 Download Diff Report: adapter-rslib Bundle Diff Generated by Rsdoctor GitHub Action |
8a48919 to
cddc774
Compare
cddc774 to
a0dfded
Compare
fi3ework
approved these changes
Apr 2, 2026
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
Background
Rsbuild and Rslib expose
source.transformImport, but Rstest did not accept or inherit that option yet. This made on-demand import transforms inconsistent between build configs and test runs.Implementation
source.transformImportto the Rstest config type and forwarded it through the Rsbuild and Rslib adapters.rstest.confige2e case to verify the option is applied in tests.rs.mock()and related actual-import APIs.User Impact
Users can now configure
source.transformImportdirectly in Rstest or inherit it from Rsbuild and Rslib configs, with the current mocking limitation documented.Checklist
Validation
pnpm formatpnpm run lintpnpm run typecheckpnpm run buildpnpm run testcd e2e && pnpm test