[RSPACK] Child application can not download remote type files automatically in Module Federation setup? #3669
Unanswered
AngeloWangCoder
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The main application has generated a remote type file.
Configuration snippet:
`
const { ModuleFederationPlugin } = require("@module-federation/enhanced/rspack");
// Host config
new ModuleFederationPlugin({
name: 'host',
filename: 'remoteEntry.js',
exposes: {
'./Component': './src/Component.tsx',
},
dts: true,
// Shared dependencies...
});
// Child config
const { ModuleFederationPlugin } = require("@module-federation/enhanced/rspack");
new ModuleFederationPlugin({
name: 'child',
remotes: {
host: 'host@http://localhost:3000/remoteEntry.js',
},
dts: true,
});
`
Environment Information:
@module-federation/enhanced: "0.11.1"
"@rspack/cli": "1.2.3",
"@rspack/core": "1.2.3",
TypeScript: "4.9.5"
Beta Was this translation helpful? Give feedback.
All reactions