You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module federation allows sharing of dependencies between bundles.
13
+
Module Federation allows sharing of dependencies between bundles.
14
14
Each bundle includes the whole set of dependencies.
15
15
However, if multiple bundles have the same dependencies, then they are loaded only once.
16
16
@@ -19,14 +19,14 @@ But if only bundle B is loaded, it uses its own bundled version of the jQuery li
19
19
20
20
There is a host bundle, as in the fictional example above, our bundle A.
21
21
In Plone the host bundle is the main Mockup bundle.
22
-
Add-ons can add bundles called "remotes" which are initialized for module federation by the host bundle.
22
+
Add-ons can add bundles called "remotes" which are initialized for Module Federation by the host bundle.
23
23
24
24
```{seealso}
25
-
Webpack's documentation on [module federation](https://webpack.js.org/concepts/module-federation/).
25
+
Webpack's documentation on [Module Federation](https://webpack.js.org/concepts/module-federation/).
26
26
```
27
27
28
28
29
-
## Use module federation
29
+
## Use Module Federation
30
30
31
31
If you created an add-on with a Mockup pattern, and you want to include the respective JavaScript code in your theme code, then the following instructions are for you.
32
32
@@ -38,7 +38,7 @@ Create a new entry point {file}`index.js` which only imports the normal entry po
38
38
import("./patterns");
39
39
```
40
40
41
-
Next add the module federation plugin in {file}`webpack.config.js`.
41
+
Next add the Module Federation plugin in {file}`webpack.config.js`.
42
42
There is a configuration factory `mf_config` which you can use for that.
0 commit comments