module-federation-examples
module-federation-examples copied to clipboard
Some problems occurred when using ModuleFederationPlugin and DllReferencePlugin at the same time
I use ModuleFederationPlugin to shared a react module, but some lib such as react、react-dom、redux and so on was builded by DllPlugin;
webpack.pub.config

webpack.dll.config

remoteEntry.js

in the remoteEntry.js , the variable of dll entry name vendor was inserted , There is no doubt that an error will be reported when the remoteEntry.js file is executed, what should i do for it ? anyone can help me? please!!