zhangHongEn / universal-module-federation-plugin

Versioned remote module manager based on npm and module-federation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not work in top level imports

jdthorpe opened this issue · comments

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.

commented

ok i will update, thanks