module-federation / core

Module Federation is a concept that allows developers to share code and resources across multiple JavaScript applications
https://module-federation.io/
MIT License
1.27k stars 184 forks source link

fix(dts-plugin): replace sourceEntry with index if the value is '.' #2624

Closed 2heal1 closed 2 weeks ago

2heal1 commented 2 weeks ago

Description

fix(dts-plugin): replace sourceEntry with index if the value is '.'

if expose key is . , the dts filename will be .d.ts , and it can not referenced correctly image

Related Issue

Types of changes

Checklist

changeset-bot[bot] commented 2 weeks ago

🦋 Changeset detected

Latest commit: a805dab7e0f5bcddca1fa71440ddadb026ea439c

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

This PR includes changesets to release 16 packages | Name | Type | | -------------------------------------------- | ----- | | @module-federation/dts-plugin | Patch | | @module-federation/enhanced | Patch | | @module-federation/manifest | Patch | | @module-federation/rspack | Patch | | @module-federation/nextjs-mf | Patch | | @module-federation/node | Patch | | 3008-runtime-remote | Patch | | @module-federation/modernjs | 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/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

netlify[bot] commented 2 weeks ago

Deploy Preview for module-federation-docs ready!

Name Link
Latest commit a805dab7e0f5bcddca1fa71440ddadb026ea439c
Latest deploy log https://app.netlify.com/sites/module-federation-docs/deploys/667137f32d21b40008b3bd36
Deploy Preview https://deploy-preview-2624--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.