Skip to content

feat(dts-plugin): move afterGenerate hook under generateTypes#4591

Merged
2heal1 merged 1 commit intomodule-federation:mainfrom
2heal1:codex/correct-dts-afterGenerateTypes
Mar 26, 2026
Merged

feat(dts-plugin): move afterGenerate hook under generateTypes#4591
2heal1 merged 1 commit intomodule-federation:mainfrom
2heal1:codex/correct-dts-afterGenerateTypes

Conversation

@2heal1
Copy link
Member

@2heal1 2heal1 commented Mar 26, 2026

Description

move afterGenerate hook under generateTypes

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

changeset-bot bot commented Mar 26, 2026

⚠️ No Changeset found

Latest commit: 4556a78

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 changesets to release 45 packages
Name Type
@module-federation/dts-plugin Major
@module-federation/sdk Major
@module-federation/cli Major
@module-federation/enhanced Major
@module-federation/manifest Major
@module-federation/metro Major
@module-federation/rspack Major
@module-federation/devtools Major
@module-federation/data-prefetch Major
@module-federation/esbuild Patch
@module-federation/managers Major
@module-federation/modern-js-v3 Major
@module-federation/modern-js Major
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/retry-plugin Major
@module-federation/rsbuild-plugin Major
@module-federation/rspress-plugin Major
@module-federation/runtime-core Major
@module-federation/runtime Major
@module-federation/storybook-addon Major
@module-federation/utilities Patch
@module-federation/webpack-bundler-runtime Major
@module-federation/bridge-react-webpack-plugin Major
@module-federation/bridge-react Major
@module-federation/bridge-vue3 Major
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
@module-federation/metro-plugin-rnc-cli Major
@module-federation/metro-plugin-rnef Major
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-tools Major
@module-federation/inject-external-runtime-core-plugin Major
@module-federation/third-party-dts-extractor Major
@module-federation/bridge-shared Major
@module-federation/error-codes Major
create-module-federation Major
@module-federation/treeshake-server Major
@module-federation/treeshake-frontend Major

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 Mar 26, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 4556a78
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69c4ad9f9dcebe000873611c
😎 Deploy Preview https://deploy-preview-4591--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 Mar 26, 2026

Open in StackBlitz

@module-federation/devtools

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

@module-federation/cli

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

create-module-federation

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

@module-federation/data-prefetch

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

@module-federation/dts-plugin

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

@module-federation/enhanced

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

@module-federation/error-codes

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

@module-federation/esbuild

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

@module-federation/managers

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

@module-federation/manifest

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

@module-federation/metro

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

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

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

@module-federation/metro-plugin-rnef

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

@module-federation/modern-js

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

@module-federation/modern-js-v3

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

@module-federation/native-federation-tests

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

@module-federation/native-federation-typescript

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

@module-federation/nextjs-mf

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

@module-federation/node

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

@module-federation/retry-plugin

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

@module-federation/rsbuild-plugin

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

@module-federation/rspack

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

@module-federation/rspress-plugin

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

@module-federation/runtime

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

@module-federation/runtime-core

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

@module-federation/runtime-tools

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

@module-federation/sdk

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

@module-federation/storybook-addon

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

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

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

@module-federation/treeshake-frontend

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

@module-federation/treeshake-server

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

@module-federation/typescript

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

@module-federation/utilities

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

@module-federation/webpack-bundler-runtime

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

@module-federation/bridge-react

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

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

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

@module-federation/bridge-shared

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

@module-federation/bridge-vue3

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

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

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

commit: 4556a78

@github-actions
Copy link
Contributor

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 473.2 kB no change 3.9 kB no change
@module-federation/dts-plugin 304.1 kB +1.0 kB (+0.3%) 4.6 kB +104 B (+2.2%)
@module-federation/enhanced 812.0 kB +127 B (+0.0%) 672 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 189.2 kB no change 217 B no change
@module-federation/sdk 120.9 kB +192 B (+0.2%) 798 B no change
@module-federation/storybook-addon 77.1 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 20.8 kB -20 B (-0.1%) 20.8 kB -20 B (-0.1%)
@module-federation/dts-plugin 14.0 kB +63 B (+0.4%) 14.0 kB +63 B (+0.4%)
@module-federation/enhanced 2.6 kB -41 B (-1.5%) 2.6 kB -41 B (-1.5%)
@module-federation/managers 2.4 kB -24 B (-1.0%) 2.4 kB -24 B (-1.0%)
@module-federation/manifest 6.2 kB -35 B (-0.5%) 6.2 kB -35 B (-0.5%)
@module-federation/metro-plugin-rnc-cli 411 B -23 B (-5.3%) 411 B -23 B (-5.3%)
@module-federation/node 9.2 kB -26 B (-0.3%) 9.2 kB -26 B (-0.3%)
@module-federation/sdk 4.7 kB no change 5.5 kB no change
@module-federation/storybook-addon 1.9 kB -21 B (-1.1%) 1.7 kB -21 B (-1.2%)
@module-federation/utilities 2.6 kB -28 B (-1.1%) 2.6 kB -28 B (-1.1%)

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 19.5 kB -19 B (-0.1%) 20.5 kB -19 B (-0.1%) +1.0 kB 0 B

Total dist (raw): 6.32 MB (+1.3 kB (+0.0%))
Total ESM gzip: 73.6 kB (+104 B (+0.1%))
Total web bundle (gzip): 178.0 kB (-214 B (-0.1%))
Total node bundle (gzip): 178.5 kB (-213 B (-0.1%))
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.

@2heal1 2heal1 merged commit d80080d into module-federation:main Mar 26, 2026
24 checks passed
@2heal1 2heal1 mentioned this pull request Mar 26, 2026
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.

1 participant