Skip to content

Comments

Rsbuild plugin esm json#4443

Draft
ScriptedAlchemy wants to merge 7 commits intomainfrom
cursor/rsbuild-plugin-esm-json-c3b2
Draft

Rsbuild plugin esm json#4443
ScriptedAlchemy wants to merge 7 commits intomainfrom
cursor/rsbuild-plugin-esm-json-c3b2

Conversation

@ScriptedAlchemy
Copy link
Member

Description

Removes an ESM JSON import by replacing package.json usage with the RSBUILD_PLUGIN_NAME constant. This change prevents JSON from being pulled into the ESM entry, addressing an issue with ESM module resolution.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

Open in Cursor Open in Web

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
@cursor
Copy link

cursor bot commented Feb 15, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@changeset-bot
Copy link

changeset-bot bot commented Feb 15, 2026

⚠️ No Changeset found

Latest commit: 52e1f07

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Feb 15, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 52e1f07
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/6996903e4374d800084a645c
😎 Deploy Preview https://deploy-preview-4443--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 15, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/devtools@52e1f07

@module-federation/cli

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/cli@52e1f07

create-module-federation

pnpm add https://pkg.pr.new/module-federation/core/create-module-federation@52e1f07

@module-federation/data-prefetch

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/data-prefetch@52e1f07

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/dts-plugin@52e1f07

@module-federation/enhanced

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/enhanced@52e1f07

@module-federation/error-codes

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/error-codes@52e1f07

@module-federation/managers

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/managers@52e1f07

@module-federation/manifest

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/manifest@52e1f07

@module-federation/metro

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro@52e1f07

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro-plugin-rnc-cli@52e1f07

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro-plugin-rnef@52e1f07

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/modern-js-v3@52e1f07

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/retry-plugin@52e1f07

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rsbuild-plugin@52e1f07

@module-federation/rspack

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rspack@52e1f07

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rspress-plugin@52e1f07

@module-federation/runtime

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime@52e1f07

@module-federation/runtime-core

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime-core@52e1f07

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime-tools@52e1f07

@module-federation/sdk

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/sdk@52e1f07

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/third-party-dts-extractor@52e1f07

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/treeshake-frontend@52e1f07

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/treeshake-server@52e1f07

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/webpack-bundler-runtime@52e1f07

@module-federation/bridge-react

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-react@52e1f07

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-react-webpack-plugin@52e1f07

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-shared@52e1f07

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-vue3@52e1f07

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/inject-external-runtime-core-plugin@52e1f07

commit: 52e1f07

@github-actions
Copy link
Contributor

github-actions bot commented Feb 15, 2026

Bundle Size Report

1 package(s) changed, 40 unchanged.

Package Total dist Delta ESM gzip Delta
rsbuild-plugin 112.0 kB -373 B (-0.3%) 91 B no change

Total dist: 6.89 MB (-373 B (-0.0%))
Total ESM gzip: 138.6 kB (no change)

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.

2 participants