|
1 | 1 | ---
|
2 | 2 | html_meta:
|
3 |
| - "description": "How to use Module Federation in Mockup and add-on bundles." |
4 |
| - "property=og:description": "How to use Module Federation in Mockup and add-on bundles." |
5 |
| - "property=og:title": "Module Federation in Mockup" |
6 |
| - "keywords": "Plone, Classic UI, classic-ui, Mockup, mockup, module federation, webpack, JavaScript" |
| 3 | + "description": "How to use module federation in Mockup and add-on bundles." |
| 4 | + "property=og:description": "How to use module federation in Mockup and add-on bundles." |
| 5 | + "property=og:title": "Module federation in Mockup" |
| 6 | + "keywords": "Plone, Classic UI, classic-ui, Mockup, module federation, webpack, JavaScript" |
7 | 7 | ---
|
8 | 8 |
|
9 | 9 | (classic-ui-module-federation-in-mockup-label)=
|
10 | 10 |
|
11 | 11 | # Module federation in Mockup
|
12 | 12 |
|
13 |
| -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 |
|
17 | 17 | For example, if bundle A and B both depend on jQuery and bundle A has already loaded it, then bundle B can just reuse the already loaded jQuery file.
|
18 | 18 | But if only bundle B is loaded, it uses its own bundled version of the jQuery library.
|
19 | 19 |
|
20 | 20 | There is a host bundle, as in the fictional example above, our bundle A.
|
21 |
| -In Plone the host bundle is the main mockup bundle. |
| 21 | +In Plone the host bundle is the main Mockup bundle. |
22 | 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 |
|
|
0 commit comments