Skip to content

fix(dts-plugin): support remoteTypeUrls option which allow user to specify the remote types url#3532

Merged
zhoushaw merged 10 commits intomainfrom
fix/dts-entry
Feb 26, 2025
Merged

fix(dts-plugin): support remoteTypeUrls option which allow user to specify the remote types url#3532
zhoushaw merged 10 commits intomainfrom
fix/dts-entry

Conversation

@2heal1
Copy link
Copy Markdown
Member

@2heal1 2heal1 commented Feb 20, 2025

Description

  • support parse @scope@manifest-url.json entry
  • support remoteTypeUrls option which allow user to specify the remote types url
entry = '@scope-name@https://domain/@version/mf-manfiest.json' 

praseEntry(entry).toEqual({
   name: '@scope-name',
   entry: 'https://domain/@version/mf-manfiest.json' 
})
plugins: [ new ModuleFederagtionPlugin({
    dts:{
      consumeTypes:{
         remoteTypeUrls: ()=>fetchDtsUrls()
      }
    }

}) ]

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 Feb 20, 2025

🦋 Changeset detected

Latest commit: 8bd5106

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

This PR includes changesets to release 29 packages
Name Type
@module-federation/dts-plugin Patch
@module-federation/sdk Patch
@module-federation/enhanced Patch
@module-federation/manifest Patch
@module-federation/rspack Patch
@module-federation/devtools Patch
@module-federation/data-prefetch Patch
@module-federation/esbuild Patch
@module-federation/managers Patch
@module-federation/modern-js Patch
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/retry-plugin Patch
@module-federation/rsbuild-plugin Patch
@module-federation/runtime-core Patch
@module-federation/runtime Patch
@module-federation/storybook-addon Patch
@module-federation/utilities Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/bridge-react-webpack-plugin Patch
@module-federation/bridge-react Patch
@module-federation/bridge-vue3 Patch
@module-federation/modernjsapp Patch
@module-federation/runtime-tools Patch
@module-federation/inject-external-runtime-core-plugin Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/bridge-shared Patch
@module-federation/error-codes 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 Feb 20, 2025

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 8bd5106
🔍 Latest deploy log https://app.netlify.com/sites/module-federation-docs/deploys/67be9c1ce78c6d0008191fbd
😎 Deploy Preview https://deploy-preview-3532--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 site configuration.

@2heal1 2heal1 changed the title fix(dts-plugin): support parse @scope@manifest-url.json entry fix(dts-plugin): support remoteTypeUrls option which allow user to specify the remote types url Feb 24, 2025
@zhoushaw zhoushaw merged commit 35d925b into main Feb 26, 2025
16 checks passed
@zhoushaw zhoushaw deleted the fix/dts-entry branch February 26, 2025 06:10
@2heal1 2heal1 mentioned this pull request Feb 26, 2025
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