Skip to content

fix(dts-plugin): stabilize package test and typings build#4475

Merged
ScriptedAlchemy merged 1 commit intomainfrom
fix/dts-plugin-rawsource-typing
Feb 25, 2026
Merged

fix(dts-plugin): stabilize package test and typings build#4475
ScriptedAlchemy merged 1 commit intomainfrom
fix/dts-plugin-rawsource-typing

Conversation

@ScriptedAlchemy
Copy link
Copy Markdown
Member

Summary

  • Update GenerateTypesPlugin to call RawSource with the current webpack typing shape, fixing TYPE-001 failures in dts-plugin tests.
  • Harden dts-plugin:test cleanup by replacing rimraf dist-test with a retrying fs.rmSync(...) cleanup to avoid intermittent ENOTEMPTY failures.
  • Keep scope limited to dts-plugin test/build stability with no API changes.

Test plan

  • pnpm install --frozen-lockfile
  • pnpm run nx:safe -- run dts-plugin:test --skip-nx-cache
  • pnpm run nx:safe -- run-many --targets=build --projects=tag:type:pkg --parallel=4 --skip-nx-cache
  • pnpm run nx:safe -- run-many --target=test --projects=tag:type:pkg --parallel=3 --skip-nx-cache

Made with Cursor

Update RawSource calls to match webpack typings and harden dist-test
cleanup so no-cache package test runs avoid intermittent failures.

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 25, 2026

⚠️ No Changeset found

Latest commit: 7c55349

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 no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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
Copy Markdown

netlify bot commented Feb 25, 2026

Deploy Preview for module-federation-docs ready!

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

@github-actions
Copy link
Copy Markdown
Contributor

Bundle Size Report

1 package(s) changed, 40 unchanged.

Package Total dist Delta ESM gzip Delta
dts-plugin 626.6 kB -28 B (-0.0%) 23.4 kB -3 B (-0.0%)

Total dist: 6.89 MB (-28 B (-0.0%))
Total ESM gzip: 138.6 kB (-3 B (-0.0%))

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 25, 2026

Open in StackBlitz

@module-federation/devtools

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

@module-federation/cli

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

create-module-federation

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

@module-federation/data-prefetch

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

@module-federation/dts-plugin

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

@module-federation/enhanced

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

@module-federation/error-codes

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

@module-federation/managers

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

@module-federation/manifest

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

@module-federation/metro

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

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

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

@module-federation/metro-plugin-rnef

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

@module-federation/modern-js-v3

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

@module-federation/retry-plugin

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

@module-federation/rsbuild-plugin

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

@module-federation/rspack

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

@module-federation/rspress-plugin

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

@module-federation/runtime

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

@module-federation/runtime-core

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

@module-federation/runtime-tools

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

@module-federation/sdk

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

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

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

@module-federation/treeshake-frontend

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

@module-federation/treeshake-server

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

@module-federation/webpack-bundler-runtime

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

@module-federation/bridge-react

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

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

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

@module-federation/bridge-shared

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

@module-federation/bridge-vue3

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

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

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

commit: 7c55349

@ScriptedAlchemy ScriptedAlchemy merged commit 03dab5a into main Feb 25, 2026
26 checks passed
@ScriptedAlchemy ScriptedAlchemy deleted the fix/dts-plugin-rawsource-typing branch February 25, 2026 02:47
@2heal1 2heal1 mentioned this pull request Mar 5, 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