Skip to content

Comments

feat(dts-plugin): generate virtual remote packages for global declarations#4409

Draft
ScriptedAlchemy wants to merge 14 commits intomainfrom
cursor/remote-types-global-declaration-251a
Draft

feat(dts-plugin): generate virtual remote packages for global declarations#4409
ScriptedAlchemy wants to merge 14 commits intomainfrom
cursor/remote-types-global-declaration-251a

Conversation

@ScriptedAlchemy
Copy link
Member

@ScriptedAlchemy ScriptedAlchemy commented Feb 10, 2026

Summary

  • add virtual remote package generation for remote type declaration output
  • wire virtual package handling into DTSManager and worker compilation flows
  • add tests covering manager behavior and virtual package generation paths

Changed Packages

  • @module-federation/dts-plugin

Changesets

  • .changeset/late-cameras-shake.md (@module-federation/dts-plugin: patch)

Base

  • main

@cursor
Copy link

cursor bot commented Feb 10, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@netlify
Copy link

netlify bot commented Feb 10, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 34b4f79
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/6996904cd9e5cb0008f39c95
😎 Deploy Preview https://deploy-preview-4409--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.

@changeset-bot
Copy link

changeset-bot bot commented Feb 10, 2026

🦋 Changeset detected

Latest commit: 34b4f79

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

This PR includes changesets to release 43 packages
Name Type
@module-federation/dts-plugin Patch
@module-federation/cli Patch
@module-federation/enhanced Patch
@module-federation/manifest Patch
@module-federation/rspack 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
remote5 Patch
remote6 Patch
website-new Patch
@module-federation/runtime Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/sdk Patch
@module-federation/runtime-tools Patch
@module-federation/managers 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/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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 10, 2026

Bundle Size Report

1 package(s) changed, 40 unchanged.

Package Total dist Delta ESM gzip Delta
dts-plugin 655.3 kB +28.6 kB (+4.6%) 24.6 kB +1.2 kB (+5.3%)

Total dist: 6.91 MB (+28.6 kB (+0.4%))
Total ESM gzip: 139.8 kB (+1.2 kB (+0.9%))

@ScriptedAlchemy ScriptedAlchemy changed the title Remote types global declaration fix(dts-plugin): improve remote types global declaration Feb 12, 2026
@ScriptedAlchemy ScriptedAlchemy changed the title fix(dts-plugin): improve remote types global declaration feat(dts-plugin): generate virtual remote packages for global declarations Feb 12, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 14, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/devtools@34b4f79

@module-federation/cli

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/cli@34b4f79

create-module-federation

pnpm add https://pkg.pr.new/module-federation/core/create-module-federation@34b4f79

@module-federation/data-prefetch

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/data-prefetch@34b4f79

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/dts-plugin@34b4f79

@module-federation/enhanced

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/enhanced@34b4f79

@module-federation/error-codes

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/error-codes@34b4f79

@module-federation/managers

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/managers@34b4f79

@module-federation/manifest

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/manifest@34b4f79

@module-federation/metro

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro@34b4f79

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

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

@module-federation/metro-plugin-rnef

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

@module-federation/modern-js-v3

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

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/retry-plugin@34b4f79

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rsbuild-plugin@34b4f79

@module-federation/rspack

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rspack@34b4f79

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rspress-plugin@34b4f79

@module-federation/runtime

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

@module-federation/runtime-core

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

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime-tools@34b4f79

@module-federation/sdk

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/sdk@34b4f79

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

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

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/treeshake-frontend@34b4f79

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/treeshake-server@34b4f79

@module-federation/webpack-bundler-runtime

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

@module-federation/bridge-react

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-react@34b4f79

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

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

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-shared@34b4f79

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-vue3@34b4f79

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

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

commit: 34b4f79

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