Pure Runtime - how to generate manifest.json of remote apps #4062
-
Hi all, I’m exploring the "pure runtime" approach with @module-federation/enhanced/runtime (i.e. not using ModuleFederation build plugin). The docs mention registering remotes in the host via manifest.json files, but I can't find explanation for how these manifests are supposed to be generated in practice(when build plugin is not used for remotes). I have a couple of questions regarding achieving this in practice:
Thanks in advance for clarification or pointers to best practices! Love this community and the problems that MF is trying to solve! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I dont see how its possible to produce a remote in the first place without the federation plugin to create remoteEntry to begin with. |
Beta Was this translation helpful? Give feedback.
The runtime is primarily for consumption and sharing of modules.
Low level, the bundlers implement the pure runtime themselves.
But to produce a remote via the pure runtime, youd need code generation, therefore youd need a compiler plugin of some sort.
Alternatively it is theoretically possible to use the pure runtime with import maps to polyfill the bundler, but itll take another 5 years before the technology is viable