Skip to content

chore(enhanced): remove unused ChildCompilationRuntimePlugin#4536

Merged
ScriptedAlchemy merged 4 commits intomainfrom
codex/remove-unused-child-compilation-runtime-plugin
Mar 12, 2026
Merged

chore(enhanced): remove unused ChildCompilationRuntimePlugin#4536
ScriptedAlchemy merged 4 commits intomainfrom
codex/remove-unused-child-compilation-runtime-plugin

Conversation

@ScriptedAlchemy
Copy link
Copy Markdown
Member

Summary

This removes packages/enhanced/src/lib/container/runtime/ChildCompilationRuntimePlugin.ts from @module-federation/enhanced.

The file was explicitly marked in-source as a previous child-compilation-based solution that is not currently used, and a repository search found no symbol or path references to it. Keeping dead runtime plugin code in the package increases maintenance surface and makes the runtime folder look more active than it is.

Deleting the file reduces unused code without changing any active import path, export surface, or runtime integration.

Validation

  • rg -n "ChildCompilationRuntimePlugin|ChildCompilationRuntime" .: no live references found outside the deleted file.
  • pnpm --filter @module-federation/enhanced run build: passed.
  • pnpm exec prettier --check .: failed due to pre-existing formatting issues in 44 unrelated files.
  • pnpm --filter @module-federation/enhanced run test: failed in pre-existing ConsumeSharedPlugin tests with isRequiredVersion is not a function, unrelated to this deletion.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 12, 2026

🦋 Changeset detected

Latest commit: c14fa03

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/enhanced Patch
@module-federation/modern-js-v3 Patch
@module-federation/modern-js Patch
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/rsbuild-plugin Patch
@module-federation/rspress-plugin Patch
@module-federation/storybook-addon Patch
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch
node-dynamic-remote-new-version Patch
node-dynamic-remote Patch
remote5 Patch
remote6 Patch
website-new Patch
@module-federation/runtime 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/devtools 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/retry-plugin Patch
@module-federation/data-prefetch 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/treeshake-server Patch
@module-federation/treeshake-frontend Patch
@module-federation/metro Patch
@module-federation/metro-plugin-rnef Patch
@module-federation/metro-plugin-rnc-cli Patch
@module-federation/esbuild Patch
@module-federation/utilities 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 Mar 12, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit c14fa03
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69b30b7b6491ad000812d738
😎 Deploy Preview https://deploy-preview-4536--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.

@ScriptedAlchemy ScriptedAlchemy changed the title [codex] remove unused ChildCompilationRuntimePlugin chore(enhanced): remove unused ChildCompilationRuntimePlugin Mar 12, 2026
@ScriptedAlchemy ScriptedAlchemy marked this pull request as ready for review March 12, 2026 18:43
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 12, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/@module-federation/devtools@07fdc1d

@module-federation/cli

pnpm add https://pkg.pr.new/@module-federation/cli@07fdc1d

create-module-federation

pnpm add https://pkg.pr.new/create-module-federation@07fdc1d

@module-federation/data-prefetch

pnpm add https://pkg.pr.new/@module-federation/data-prefetch@07fdc1d

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/@module-federation/dts-plugin@07fdc1d

@module-federation/enhanced

pnpm add https://pkg.pr.new/@module-federation/enhanced@07fdc1d

@module-federation/error-codes

pnpm add https://pkg.pr.new/@module-federation/error-codes@07fdc1d

@module-federation/esbuild

pnpm add https://pkg.pr.new/@module-federation/esbuild@07fdc1d

@module-federation/managers

pnpm add https://pkg.pr.new/@module-federation/managers@07fdc1d

@module-federation/manifest

pnpm add https://pkg.pr.new/@module-federation/manifest@07fdc1d

@module-federation/metro

pnpm add https://pkg.pr.new/@module-federation/metro@07fdc1d

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

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

@module-federation/metro-plugin-rnef

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

@module-federation/modern-js

pnpm add https://pkg.pr.new/@module-federation/modern-js@07fdc1d

@module-federation/modern-js-v3

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

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/@module-federation/native-federation-tests@07fdc1d

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/@module-federation/native-federation-typescript@07fdc1d

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/@module-federation/nextjs-mf@07fdc1d

@module-federation/node

pnpm add https://pkg.pr.new/@module-federation/node@07fdc1d

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/@module-federation/retry-plugin@07fdc1d

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/@module-federation/rsbuild-plugin@07fdc1d

@module-federation/rspack

pnpm add https://pkg.pr.new/@module-federation/rspack@07fdc1d

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/@module-federation/rspress-plugin@07fdc1d

@module-federation/runtime

pnpm add https://pkg.pr.new/@module-federation/runtime@07fdc1d

@module-federation/runtime-core

pnpm add https://pkg.pr.new/@module-federation/runtime-core@07fdc1d

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/@module-federation/runtime-tools@07fdc1d

@module-federation/sdk

pnpm add https://pkg.pr.new/@module-federation/sdk@07fdc1d

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/@module-federation/storybook-addon@07fdc1d

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

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

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/@module-federation/treeshake-frontend@07fdc1d

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/@module-federation/treeshake-server@07fdc1d

@module-federation/typescript

pnpm add https://pkg.pr.new/@module-federation/typescript@07fdc1d

@module-federation/utilities

pnpm add https://pkg.pr.new/@module-federation/utilities@07fdc1d

@module-federation/webpack-bundler-runtime

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

@module-federation/bridge-react

pnpm add https://pkg.pr.new/@module-federation/bridge-react@07fdc1d

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

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

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/@module-federation/bridge-shared@07fdc1d

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/@module-federation/bridge-vue3@07fdc1d

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

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

commit: 07fdc1d

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 12, 2026

Bundle Size Report

12 package(s) changed, 28 unchanged.

Package dist + ESM entry

Package Total dist (raw) Delta ESM gzip Delta
@module-federation/cli 26.7 kB no change 786 B no change
@module-federation/core 39.1 kB no change 173 B no change
@module-federation/devtools 4.80 MB -7765 B (-0.2%) 0 B no change
@module-federation/enhanced 810.8 kB -9195 B (-1.1%) 712 B no change
@module-federation/managers 69.9 kB no change 334 B no change
@module-federation/manifest 138.4 kB no change 182 B no change
@module-federation/metro-plugin-rnc-cli 0 B no change 314 B no change
@module-federation/node 188.4 kB no change 217 B no change
@module-federation/runtime 19.5 kB +13 B (+0.1%) 616 B no change
@module-federation/runtime-core 249.4 kB -8 B (-0.0%) 477 B no change
@module-federation/storybook-addon 76.5 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 -29 B (-2.6%) 1.0 kB -28 B (-2.6%)
@module-federation/devtools n/a n/a n/a n/a
@module-federation/enhanced 5.9 kB -55 B (-0.9%) 5.9 kB -55 B (-0.9%)
@module-federation/managers 2.4 kB -24 B (-1.0%) 2.4 kB -24 B (-1.0%)
@module-federation/manifest 6.2 kB -36 B (-0.6%) 6.2 kB -36 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 -25 B (-0.3%) 9.2 kB -25 B (-0.3%)
@module-federation/runtime 625 B no change 625 B no change
@module-federation/runtime-core 13.4 kB no change 13.2 kB no change
@module-federation/storybook-addon 1.9 kB -22 B (-1.1%) 1.7 kB -21 B (-1.2%)
@module-federation/utilities 2.6 kB -29 B (-1.1%) 2.6 kB -29 B (-1.1%)

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 19.1 kB -11 B (-0.1%) 20.1 kB -14 B (-0.1%) +1.0 kB -3 B

Total dist (raw): 10.62 MB (-16955 B (-0.2%))
Total ESM gzip: 68.7 kB (no change)
Total web bundle (gzip): 158.6 kB (-274 B (-0.2%))
Total node bundle (gzip): 159.2 kB (-272 B (-0.2%))
Tracked ./bundler entry gzip: 556 B (no change)
Tracked ./bundler web bundle (gzip): 4.5 kB (no change)
Tracked ./bundler node bundle (gzip): 4.5 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.

@ScriptedAlchemy ScriptedAlchemy merged commit 90758e9 into main Mar 12, 2026
24 checks passed
@ScriptedAlchemy ScriptedAlchemy deleted the codex/remove-unused-child-compilation-runtime-plugin branch March 12, 2026 19:06
@2heal1 2heal1 mentioned this pull request Mar 14, 2026
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