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
Copy file name to clipboardExpand all lines: libs/native-federation-core/README.md
+19-27Lines changed: 19 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,23 @@ Big thanks to:
50
50
51
51
## Using this Library
52
52
53
+
### Installing the Library
54
+
55
+
```
56
+
npm i @softarc/native-federation
57
+
```
58
+
59
+
As Native Federation is tooling agnostic, we need an adapter to make it work with specific build tools. The package ``@softarc/native-federation-esbuild`` contains a simple adapter that uses esbuild:
60
+
61
+
```
62
+
npm i @softarc/native-federation-esbuild
63
+
```
64
+
65
+
In some situations, this builder also delegates to rollup. This is necessary b/c esbuild does not provide all features we need (yet). We hope to minimize the usage of rollup in the future.
66
+
67
+
You can also provide your own adapter by providing a function aligning with the ``BuildAdapter`` type.
68
+
69
+
53
70
### Augment your Build Process
54
71
55
72
Just call three helper methods provided by our ``federationBuilder`` in your build process to adjust it for Native Federation.
@@ -58,7 +75,7 @@ Just call three helper methods provided by our ``federationBuilder`` in your bui
The method ``federationBuilder.build`` bundles the shared and exposed parts of your app. For this, it needs a bundler. As this solution is tooling-agnostic, you need to provide an adapter for your bundler:
119
-
120
-
```typescript
121
-
import { BuildAdapter } from '@softarc/native-federation/build';
0 commit comments