2

Requirement: To prefetch the remote modules(module federated) during browser idle time in react.

I've tried webpack magic comment webpackPrefetch: true but that did not work with module federation. I came across the post which says webpack magic comments do no work with module federation. Is there any library or any workaround to prefetch the remote modules during browser idle time

I've also tried npm libraries like @loadable/component which preloads the remote modules, but this is not during the idle time of browser. I am looking for something that does same thing as webpackPrefetch: true for module federation.

1
  • I have also been looking for a solution to eagerly import a dynamic remote exposed module. If you use ExternalRemotesPlugin you will load all declared remotes in the config eagerly. In my case I just want specific remotes to have this behavior Commented Jun 20, 2023 at 2:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.