Skip to content

feat: support shared tree shaking#4084

Merged
2heal1 merged 41 commits intomainfrom
feat/shared-treeshake-poc
Jan 23, 2026
Merged

feat: support shared tree shaking#4084
2heal1 merged 41 commits intomainfrom
feat/shared-treeshake-poc

Conversation

@2heal1
Copy link
Copy Markdown
Member

@2heal1 2heal1 commented Sep 21, 2025

Description

Support shared tree shaking .

It support two modes: runtime-infer | server-calc to satisfy different demands.

View this discusstion for more details .

Related Issue

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

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

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Sep 21, 2025

🦋 Changeset detected

Latest commit: e6667b1

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

This PR includes changesets to release 41 packages
Name Type
@module-federation/modern-js Major
@module-federation/storybook-addon Major
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch
@module-federation/runtime Major
@module-federation/enhanced Major
@module-federation/rspack Major
@module-federation/webpack-bundler-runtime Major
@module-federation/sdk Major
@module-federation/runtime-tools Major
@module-federation/managers Major
@module-federation/manifest Major
@module-federation/dts-plugin Major
@module-federation/third-party-dts-extractor Major
@module-federation/devtools Major
@module-federation/bridge-react Major
@module-federation/bridge-vue3 Major
@module-federation/bridge-shared Major
@module-federation/bridge-react-webpack-plugin Major
@module-federation/retry-plugin Major
@module-federation/data-prefetch Major
@module-federation/rsbuild-plugin Major
@module-federation/error-codes Major
@module-federation/inject-external-runtime-core-plugin Major
@module-federation/runtime-core Major
create-module-federation Major
@module-federation/cli Major
@module-federation/rspress-plugin Major
@module-federation/metro Major
@module-federation/metro-plugin-rnef Major
@module-federation/metro-plugin-rnc-cli Major
@module-federation/nextjs-mf Patch
@module-federation/node Patch
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
@module-federation/modernjsapp Patch
@module-federation/esbuild Patch
@module-federation/utilities Patch
remote5 Patch
remote6 Patch
website-new 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 Sep 21, 2025

Deploy Preview for module-federation-docs ready!

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

@2heal1 2heal1 force-pushed the feat/shared-treeshake-poc branch 2 times, most recently from c83bc8f to 587efd5 Compare October 20, 2025 02:52
@2heal1 2heal1 force-pushed the feat/shared-treeshake-poc branch from 587efd5 to cdfb10e Compare November 3, 2025 07:16
@2heal1 2heal1 force-pushed the feat/shared-treeshake-poc branch from 092595a to 8c69ab2 Compare November 27, 2025 13:13
@2heal1 2heal1 force-pushed the feat/shared-treeshake-poc branch from 8c69ab2 to 1fec784 Compare November 27, 2025 13:20
chore: add ut

feat: done

fix(modernjs)!: ship .mjs files for correct ESM output (#4240)

fix: prefer use `stroybook/internal/node-logger` as logger (#4235)

docs: remove invalid lark link (#4253)

fix: manifest type
@2heal1 2heal1 force-pushed the feat/shared-treeshake-poc branch from b946333 to 8f26d8b Compare December 8, 2025 06:49
add ability to exclude specific plugins from tree-shake analysis in ModuleFederation
@2heal1 2heal1 changed the title feat: support treeshake shared feat: support shared tree shaking Jan 23, 2026
@2heal1 2heal1 merged commit f46cdd6 into main Jan 23, 2026
23 checks passed
@2heal1 2heal1 deleted the feat/shared-treeshake-poc branch January 23, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants