Skip to content

Commit 9c60343

Browse files
docs(plugins): Update module-federation-plugin.mdx (#7380)
Fixed a typo in Sharing libraries section, where "need" was written twice.
1 parent 5c7efe0 commit 9c60343

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/plugins/module-federation-plugin.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ contributors:
66
- chenxsan
77
- burhanuday
88
- christian24
9+
- KhaledTaymour
910
related:
1011
- title: Module Federation
1112
url: /concepts/module-federation/
@@ -74,7 +75,7 @@ format(new Date(2014, 1, 11), 'MM/dd/yyyy');
7475
```
7576

7677
and webpack will automatically share `date-fns` between all your federated modules that define `date-fns` as a shared library.
77-
However, if you want to access something that is not located at the root level of the package, for example `date-fns/locale/en-GB/index.js`, you need need to append `/` to the package name in your `shared` configuration:
78+
However, if you want to access something that is not located at the root level of the package, for example `date-fns/locale/en-GB/index.js`, you need to append `/` to the package name in your `shared` configuration:
7879

7980
```js
8081
const { ModuleFederationPlugin } = require('webpack').container;

0 commit comments

Comments
 (0)