Skip to content

Commit 9a80b1b

Browse files
authored
Revert to Module Federation because webpack breaks the rules of English
1 parent 98267c7 commit 9a80b1b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/classic-ui/module-federation.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
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, 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"
77
---
88

99
(classic-ui-module-federation-in-mockup-label)=
1010

11-
# Module federation in Mockup
11+
# Module Federation in Mockup
1212

13-
Module federation allows sharing of dependencies between bundles.
13+
Module Federation allows sharing of dependencies between bundles.
1414
Each bundle includes the whole set of dependencies.
1515
However, if multiple bundles have the same dependencies, then they are loaded only once.
1616

@@ -19,14 +19,14 @@ But if only bundle B is loaded, it uses its own bundled version of the jQuery li
1919

2020
There is a host bundle, as in the fictional example above, our bundle A.
2121
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.
2323

2424
```{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/).
2626
```
2727

2828

29-
## Use module federation
29+
## Use Module Federation
3030

3131
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.
3232

@@ -38,7 +38,7 @@ Create a new entry point {file}`index.js` which only imports the normal entry po
3838
import("./patterns");
3939
```
4040

41-
Next add the module federation plugin in {file}`webpack.config.js`.
41+
Next add the Module Federation plugin in {file}`webpack.config.js`.
4242
There is a configuration factory `mf_config` which you can use for that.
4343
Add the following line near the top of the file.
4444

0 commit comments

Comments
 (0)