core
core copied to clipboard
dts for entries exposed with aliases are not emitting
Describe the bug
DTS for exposed entries does not emit If we're using an alias in there entries
import * as path from "node:path";
import {ModuleFederationPlugin} from "@module-federation/enhanced";
export default {
resolve: {
alias: {
foo: path.resolve(__dirname, 'src/sub/foo') // here is an alias for foo
}
},
plugins: [
new ModuleFederationPlugin({
exposes: {
'./foo': 'foo', // ❌ not working (no dts created for src/sub/foo), even if it's an existing alias
// './foo': './src/sub/foo', // ✅ works fine
'./bar': './src/bar'
},
})
]
}
Reproduction
https://github.com/smelukov/mf-dts-alias-bug/blob/main/webpack.config.ts#L16
Used Package Manager
npm
System Info
...
Validations
- [X] Read the docs.
- [X] Read the common issues list.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Module federation issue and not a framework-specific issue.
- [X] The provided reproduction is a minimal reproducible example of the bug.