Overview of Umi 4 key features
masterUmi 4 introduces several major architectural improvements:
- MFSU V3: Enabled by default, offering significantly faster compilation and page load speeds. It can also run independently of Umi.
- Dual Build Engines: Supports both Vite and Webpack 5. Developers can choose different engines for different environments (e.g., Vite for
devand Webpack forbuild). - React Router 6: Built on React Router 6, featuring a new routing structure designed for configuration-based routing and future extensible request handling.
- Dependency Pre-bundling: Locks both Node-side dependencies and certain runtime dependencies like
core-jsand@babel/runtimefor improved stability. - Umi Max: A centralized framework version based on the internal Bigfish framework.
- Micro-generators: Inspired by Modern.js, allowing for on-demand feature enablement (e.g., adding Prettier with its configuration and dependencies automatically).