Skip to content

build(core): enable advanced ESM#6575

Merged
chenjiahan merged 1 commit intomainfrom
anvaced_esm_1113
Nov 14, 2025
Merged

build(core): enable advanced ESM#6575
chenjiahan merged 1 commit intomainfrom
anvaced_esm_1113

Conversation

@chenjiahan
Copy link
Member

Summary

The same as #6513.

The unexpected exports issue has been fixed by Rspack, so we can enable advanced ESM for @rsbuild/core now.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 13, 2025 14:09
@netlify
Copy link

netlify bot commented Nov 13, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 9fd419c
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6915e686f459590008ecfe68
😎 Deploy Preview https://deploy-preview-6575--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 42 (🔴 down 16 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables advanced ESM (ECMAScript Modules) support for @rsbuild/core by upgrading @rslib/core to version 0.17.2 and configuring three ESM build targets with the advancedEsm experimental feature.

  • Updated @rslib/core dependency from 0.17.1 to 0.17.2 across all packages
  • Enabled experiments.advancedEsm: true for ESM index, loaders, and client builds
  • Updated lock file with new dependency versions and cleaned up unused intermediate versions

Reviewed Changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/core/rslib.config.ts Added experiments.advancedEsm: true configuration to three ESM build targets (esm_index, esm_loaders, esm_client)
packages/core/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
scripts/config/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
scripts/test-helper/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/plugin-vue/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/plugin-svgr/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/plugin-svelte/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/plugin-stylus/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/plugin-solid/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/plugin-sass/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/plugin-react/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/plugin-preact/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/plugin-less/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/plugin-babel/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/create-rsbuild/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/compat/webpack/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
packages/compat/plugin-webpack-swc/package.json Updated @rslib/core devDependency from 0.17.1 to 0.17.2
pnpm-lock.yaml Updated lock file with new dependency versions and resolutions, including @rslib/core@0.17.2, @rsbuild/core@1.6.6, rsbuild-plugin-dts@0.17.2, and cleaned up unused intermediate dependency versions
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan merged commit 38d45de into main Nov 14, 2025
18 checks passed
@chenjiahan chenjiahan deleted the anvaced_esm_1113 branch November 14, 2025 02:17
@chenjiahan chenjiahan mentioned this pull request Nov 18, 2025
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.

1 participant

Comments