Skip to content

chore(devtools): consolidate proxy logic#4728

Merged
2heal1 merged 1 commit into
mainfrom
chore/chrome-devtools-inline-script
May 13, 2026
Merged

chore(devtools): consolidate proxy logic#4728
2heal1 merged 1 commit into
mainfrom
chore/chrome-devtools-inline-script

Conversation

@2heal1
Copy link
Copy Markdown
Member

@2heal1 2heal1 commented May 13, 2026

What changed

  • Consolidated the Chrome DevTools proxy logic behind a copied bundled proxy asset.
  • Kept the open-source DevTools UI and the existing override/snapshot plugin entry files.

Validation

  • pnpm --filter @module-federation/devtools test
  • pnpm --filter @module-federation/devtools build
  • pnpm --filter @module-federation/devtools run build:devtool
  • node --check packages/chrome-devtools/src/vendor/basic-proxy-core.js
  • node --check packages/chrome-devtools/dist/static/js/override-remote.js
  • node --check packages/chrome-devtools/dist/static/js/snapshot-plugin.js
  • Opened http://localhost:8080/ after pnpm dev and verified the DevTools page renders correctly.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 13, 2026

🦋 Changeset detected

Latest commit: 7970b5f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 45 packages
Name Type
@module-federation/devtools Patch
@module-federation/runtime Patch
@module-federation/enhanced Patch
@module-federation/rspack Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/sdk Patch
@module-federation/runtime-tools Patch
@module-federation/managers Patch
@module-federation/manifest Patch
@module-federation/dts-plugin Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/bridge-react Patch
@module-federation/bridge-vue3 Patch
@module-federation/bridge-shared Patch
@module-federation/bridge-react-webpack-plugin Patch
@module-federation/modern-js Patch
@module-federation/modern-js-v3 Patch
@module-federation/retry-plugin Patch
@module-federation/rsbuild-plugin Patch
@module-federation/error-codes Patch
@module-federation/inject-external-runtime-core-plugin Patch
@module-federation/runtime-core Patch
create-module-federation Patch
@module-federation/cli Patch
@module-federation/rspress-plugin Patch
@module-federation/treeshake-server Patch
@module-federation/treeshake-frontend Patch
@module-federation/metro Patch
@module-federation/metro-plugin-rnef Patch
@module-federation/metro-plugin-rock Patch
@module-federation/metro-plugin-rnc-cli Patch
@module-federation/esbuild Patch
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/storybook-addon Patch
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
@module-federation/utilities Patch
remote5 Patch
remote6 Patch
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch
website-new Patch
node-dynamic-remote-new-version Patch
node-dynamic-remote Patch

Not sure what this means? Click here to learn what changesets are.

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

@netlify
Copy link
Copy Markdown

netlify Bot commented May 13, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 7970b5f
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/6a044ba69128e80008cd3f25
😎 Deploy Preview https://deploy-preview-4728--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 13, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/@module-federation/devtools@7970b5f

@module-federation/cli

pnpm add https://pkg.pr.new/@module-federation/cli@7970b5f

create-module-federation

pnpm add https://pkg.pr.new/create-module-federation@7970b5f

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/@module-federation/dts-plugin@7970b5f

@module-federation/enhanced

pnpm add https://pkg.pr.new/@module-federation/enhanced@7970b5f

@module-federation/error-codes

pnpm add https://pkg.pr.new/@module-federation/error-codes@7970b5f

@module-federation/esbuild

pnpm add https://pkg.pr.new/@module-federation/esbuild@7970b5f

@module-federation/managers

pnpm add https://pkg.pr.new/@module-federation/managers@7970b5f

@module-federation/manifest

pnpm add https://pkg.pr.new/@module-federation/manifest@7970b5f

@module-federation/metro

pnpm add https://pkg.pr.new/@module-federation/metro@7970b5f

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

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnc-cli@7970b5f

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnef@7970b5f

@module-federation/metro-plugin-rock

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rock@7970b5f

@module-federation/modern-js

pnpm add https://pkg.pr.new/@module-federation/modern-js@7970b5f

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/@module-federation/modern-js-v3@7970b5f

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/@module-federation/native-federation-tests@7970b5f

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/@module-federation/native-federation-typescript@7970b5f

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/@module-federation/nextjs-mf@7970b5f

@module-federation/node

pnpm add https://pkg.pr.new/@module-federation/node@7970b5f

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/@module-federation/retry-plugin@7970b5f

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/@module-federation/rsbuild-plugin@7970b5f

@module-federation/rspack

pnpm add https://pkg.pr.new/@module-federation/rspack@7970b5f

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/@module-federation/rspress-plugin@7970b5f

@module-federation/runtime

pnpm add https://pkg.pr.new/@module-federation/runtime@7970b5f

@module-federation/runtime-core

pnpm add https://pkg.pr.new/@module-federation/runtime-core@7970b5f

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/@module-federation/runtime-tools@7970b5f

@module-federation/sdk

pnpm add https://pkg.pr.new/@module-federation/sdk@7970b5f

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/@module-federation/storybook-addon@7970b5f

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

pnpm add https://pkg.pr.new/@module-federation/third-party-dts-extractor@7970b5f

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/@module-federation/treeshake-frontend@7970b5f

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/@module-federation/treeshake-server@7970b5f

@module-federation/typescript

pnpm add https://pkg.pr.new/@module-federation/typescript@7970b5f

@module-federation/utilities

pnpm add https://pkg.pr.new/@module-federation/utilities@7970b5f

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/@module-federation/webpack-bundler-runtime@7970b5f

@module-federation/bridge-react

pnpm add https://pkg.pr.new/@module-federation/bridge-react@7970b5f

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

pnpm add https://pkg.pr.new/@module-federation/bridge-react-webpack-plugin@7970b5f

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/@module-federation/bridge-shared@7970b5f

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/@module-federation/bridge-vue3@7970b5f

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

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

commit: 7970b5f

@2heal1 2heal1 marked this pull request as ready for review May 13, 2026 10:03
@github-actions
Copy link
Copy Markdown
Contributor

Bundle Size Report

10 package(s) changed, 30 unchanged.

Package dist + ESM entry

Package Total dist (raw) Delta ESM gzip Delta
@module-federation/cli 26.3 kB no change 786 B no change
@module-federation/core 39.1 kB no change 173 B no change
@module-federation/devtools 485.1 kB -2888 B (-0.6%) 3.9 kB no change
@module-federation/enhanced 807.3 kB no change 672 B no change
@module-federation/managers 69.8 kB no change 334 B no change
@module-federation/manifest 136.1 kB no change 182 B no change
@module-federation/metro-plugin-rnc-cli 0 B no change 314 B no change
@module-federation/node 193.4 kB no change 217 B no change
@module-federation/storybook-addon 77.7 kB no change 100 B no change
@module-federation/utilities 110.6 kB no change 328 B no change

Bundle targets

Package Web bundle (gzip) Delta Node bundle (gzip) Delta
@module-federation/cli 2.3 kB -30 B (-1.3%) 2.3 kB -30 B (-1.3%)
@module-federation/core 1.1 kB -30 B (-2.7%) 1.0 kB -29 B (-2.7%)
@module-federation/devtools 22.3 kB +1014 B (+4.6%) 22.3 kB +1014 B (+4.6%)
@module-federation/enhanced 2.6 kB -44 B (-1.6%) 2.6 kB -44 B (-1.6%)
@module-federation/managers 2.4 kB -26 B (-1.0%) 2.4 kB -26 B (-1.0%)
@module-federation/manifest 6.1 kB -38 B (-0.6%) 6.1 kB -38 B (-0.6%)
@module-federation/metro-plugin-rnc-cli 411 B -24 B (-5.5%) 411 B -24 B (-5.5%)
@module-federation/node 9.2 kB -27 B (-0.3%) 9.2 kB -27 B (-0.3%)
@module-federation/storybook-addon 1.9 kB -22 B (-1.1%) 1.7 kB -22 B (-1.2%)
@module-federation/utilities 2.6 kB -30 B (-1.1%) 2.6 kB -30 B (-1.1%)

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 19.8 kB -8 B (-0.0%) 20.8 kB -6 B (-0.0%) +1.0 kB +2 B

Total dist (raw): 6.24 MB (-2888 B (-0.0%))
Total ESM gzip: 74.1 kB (no change)
Total web bundle (gzip): 180.8 kB (+743 B (+0.4%))
Total node bundle (gzip): 181.2 kB (+744 B (+0.4%))
Tracked ./bundler entry gzip: 556 B (no change)
Tracked ./bundler web bundle (gzip): 4.8 kB (no change)
Tracked ./bundler node bundle (gzip): 4.8 kB (no change)

Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as ./bundler are measured separately so ENV_TARGET-driven tree-shaking is visible. Bare imports are externalized to keep package-level sizes consistent, and assets are emitted as resources.

@2heal1 2heal1 merged commit d2e8d79 into main May 13, 2026
29 checks passed
@2heal1 2heal1 deleted the chore/chrome-devtools-inline-script branch May 13, 2026 11:27
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