How to use this plugin in rspack?
PIMBA opened this issue · comments
PIMBA commented
How to use this plugin in rspack?
Nikita Sherbakov commented
Were you able to solve this?
Steven Prybylynskyi commented
Nikita Sherbakov commented
There is another plugin for dynamic remotes that works with rspack.
import { importRemote } from "@module-federation/utilities";
const ShellService =
React.lazy(() =>
importRemote({
scope: "shell",
module: "./ShellService",
remoteEntryFileName: "remoteEntry.js",
url: () => axios.get("/remotes").then(data => data.shellRemoteURL), // e.g. http://localhost:3000
})
)
);