vite-plugin-federation
vite-plugin-federation copied to clipboard
Bug with Vite
Versions
- vite-plugin-federation:
- vite:
Steps to reproduce
Try adding shared in vite.config.ts
Ex:
federation({
name: "host-app",
remotes: {
remoteRemixApp: "http://localhost:3010/assets/remoteEntry.js",
},
shared: ["react", "react-dom"],
}),
What is Expected?
Should not output react-dom cannot be external
What is actually happening?
When building it, it errors out saying like Entry module "react-dom" cannot be external.
I have the same problem
这个插件停止维护了吗?
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Has this plugin stopped maintaining?