Skip to content

Commit

Permalink
docs(core): link to webpack MF build speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
juristr committed Jul 19, 2022
1 parent aed7b5e commit c3bd976
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/shared/incremental-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ When we talk about incremental builds we often talk about incrementally compilin
But there are other ways to make the build process incremental. One of them is using WebPack Module Federation.

When using WebPack Module Federation, you split the application into multiple webpack builds. Imagine the application has 3 big sections, and they are built using 3 webpack builds: `W1`, `W2`, and `W3`. Each of them has to build shared code in addition to building the corresponding application section code. So the time it takes to build all of them (`W1` + `W2` + `W3`) will be greater than `W`. However, if you change only Section 1, you will only need to run `W1`. `W2` and `W3` will be retrieved from cache. In addition, `W1`, `W2`, and `W3` can run on separate machines. Because of that, both the CI time and the local serve time can be drastically reduced.

Learn more: [Faster Builds with Module Federation](/module-federation/faster-builds)

0 comments on commit c3bd976

Please sign in to comment.