universal-module-federation-plugin
universal-module-federation-plugin copied to clipboard
Does not work in top level imports
Like the ModuleFederationPlugin, modules imported with this plugin need to be bootstrapped in the usual way. For example, putting the import remixRunRouter from "@remix-run/router" import in the top-level app1/src/index.js in the example repo, errors out with a very unhelpful message (Uncaught TypeError: Cannot read properties of undefined (reading 'call')).
Probably worth mentioning this in the README like the module federation plugin does.
ok i will update, thanks