• service-oriented-architecture
  • Posts

    Micro Frontends in NextJS with Webpack 5

    Webpack 5's Module Federation makes creating micro frontends straightforward. It is also available in NextJS 10+ via an experimental feature flag and it makes integrating micro frontends a breeze. You first build an external micro frontend and deploy it as a "federated module" to your destination of choice. Then you update some configs in your NextJS application and Webpack does the rest. It's kind of magic 🦄.

    AvatarKevin WangMarch 26, 2021