Replies: 1 comment
-
|
At the current package layout these are effectively the same runtime API, just reached through different packages. The chain is: So For a Vite-only project, I would import from If your setup already uses So I don't think one supersedes the other; the docs/examples are mixing the wrapper import and the underlying package. A short note in the docs saying that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed an inconsistency in the runtime documentation and examples.
The documentation mentions using: @module-federation/enhanced/runtime
Link(https://module-federation.io/guide/runtime/index.html)
However, the Vite example appears to use: @module-federation/runtime
Link(https://github.com/module-federation/vite/blob/main/examples/vite-runtime-register/vite-host/package.json)
This makes it unclear which package is currently recommended for runtime APIs in Vite-based projects.
Questions
Suggestion
It would help to clarify this in the documentation by:
Environment
Beta Was this translation helpful? Give feedback.
All reactions