Menu

1 / 2

vite-plugin-federation 1.0: Bringing Module Federation Into the Production Era for Vite

DEV Community·Michael Lin·6 months ago
#5S3d9sg0
Reading 0:00
15s threshold

A manifest-first, SSR-aware, multi-tenant, observable Module Federation 2.x runtime wrapper for Vite 5 / 6 / 7 / 8, including Rolldown.

1. Why Micro-Frontends Still Have Production Gaps in the Vite Ecosystem

Module Federation became the de facto micro-frontend standard with Webpack 5. Anyone who has tried to land a micro-frontend system in the Vite ecosystem has likely run into the same set of constraints:

Vite does not implement Webpack's container protocol natively. The two mainstream community options take different approaches: @originjs/vite-plugin-federation ships its own runtime around virtual:__federation__ , while @module-federation/vite connects directly to @module-federation/runtime .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.