Module federation & PatternFly #5902
nicolethoen
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Module federation allows codebases to share such assets across multiple applications. Provided they have the correct build configuration and the module meets the version requirements.
Since Webpack does not know at build time which modules from a dependency will be used at runtime. It can’t confidently attempt to treeshake everything because it does not know what might be required. As part of PatternFly 5, the build was adjusted to support products importing components using absolute import paths. This allows Webpack to the import path as the identifier of the module in the Webpack cache.
For more information about federation modules and how it can be used to reduce the size of PatternFly's footprint in bundles, see this Medium article recently published!
Beta Was this translation helpful? Give feedback.
All reactions