chore(enhanced): remove unused ChildCompilationRuntimePlugin#4536
Conversation
🦋 Changeset detectedLatest commit: c14fa03 The changes in this PR will be included in the next version bump. This PR includes changesets to release 45 packages
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 |
✅ Deploy Preview for module-federation-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@module-federation/devtools
@module-federation/cli
create-module-federation
@module-federation/data-prefetch
@module-federation/dts-plugin
@module-federation/enhanced
@module-federation/error-codes
@module-federation/esbuild
@module-federation/managers
@module-federation/manifest
@module-federation/metro
@module-federation/metro-plugin-rnc-cli
@module-federation/metro-plugin-rnef
@module-federation/modern-js
@module-federation/modern-js-v3
@module-federation/native-federation-tests
@module-federation/native-federation-typescript
@module-federation/nextjs-mf
@module-federation/node
@module-federation/retry-plugin
@module-federation/rsbuild-plugin
@module-federation/rspack
@module-federation/rspress-plugin
@module-federation/runtime
@module-federation/runtime-core
@module-federation/runtime-tools
@module-federation/sdk
@module-federation/storybook-addon
@module-federation/third-party-dts-extractor
@module-federation/treeshake-frontend
@module-federation/treeshake-server
@module-federation/typescript
@module-federation/utilities
@module-federation/webpack-bundler-runtime
@module-federation/bridge-react
@module-federation/bridge-react-webpack-plugin
@module-federation/bridge-shared
@module-federation/bridge-vue3
@module-federation/inject-external-runtime-core-plugin
commit: |
Bundle Size Report12 package(s) changed, 28 unchanged. Package dist + ESM entry
Bundle targets
Consumer scenarios
Total dist (raw): 10.62 MB (-16955 B (-0.2%)) Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as |
Summary
This removes
packages/enhanced/src/lib/container/runtime/ChildCompilationRuntimePlugin.tsfrom@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-existingConsumeSharedPlugintests withisRequiredVersion is not a function, unrelated to this deletion.