Merged
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR enables the advancedEsm experimental feature for all ESM format builds in the core package. This configuration is applied to improve ESM output handling.
- Adds
experiments.advancedEsm: trueto all ESM format library configurations - Ensures consistent configuration across esm_index, esm_loaders, and esm_client builds
- Leaves CJS builds unchanged as the feature is ESM-specific
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
chenjiahan
added a commit
that referenced
this pull request
Nov 7, 2025
This reverts commit c3b10d4.
2 tasks
chenjiahan
added a commit
that referenced
this pull request
Nov 7, 2025
This was referenced Nov 7, 2025
Merged
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
Enable Rslib's advanced ESM features for all ESM builds of
@rsbuild/core.Before
File (esm_index) Size dist/0~range-parser.js 2.4 kB dist/0~open.js 18.3 kB dist/index.js 495.2 kB Total: 515.9 kB File (esm_loaders) Size dist/ignoreCssLoader.mjs 0.19 kB dist/transformLoader.mjs 2.1 kB dist/transformRawLoader.mjs 2.1 kB Total: 4.5 kBAfter
File (esm_index) Size dist/0~range-parser.js 2.3 kB dist/rslib-runtime.js 2.3 kB dist/0~open.js 14.9 kB dist/index.js 489.7 kB Total: 509.2 kB File (esm_loaders) Size dist/ignoreCssLoader.mjs 0.13 kB dist/223.mjs 0.55 kB dist/transformLoader.mjs 1.6 kB dist/transformRawLoader.mjs 1.7 kB Total: 4.0 kBRelated Links
Checklist