module-federation-examples icon indicating copy to clipboard operation
module-federation-examples copied to clipboard

Some problems occurred when using ModuleFederationPlugin and DllReferencePlugin at the same time

Open pika1217 opened this issue 3 years ago • 0 comments

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 image

webpack.dll.config image

remoteEntry.js image

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!!

pika1217 avatar Sep 16 '22 15:09 pika1217