Manato Kuroda
Jan 13, 2021

--

As far as I know, there is no plugin such as “import-map override” in Module Federation.

Unlike Import maps, which is an in-browser module, Module Federation is a build-module so you can override the url only when you boost the app. (Technically, the url of the script tag can be changed in running though)

For instance, if you use the plugin like “ HtmlWebpackTagsPlugin”, you can change the micro-frontend url to point the local one through environment variables.

I’ve created the example PR so you can check it out.

https://github.com/manakuro/micro-frontends-single-spa-module-federation/pull/1/files

--

--

Responses (1)