vite-plugin-qiankun-lite is a Vite plugin that simplifies integrating qiankun micro-frontend framework into Vite-based applications. Version 1.3.0 supports Vite 4 through 7, maintaining active development with regular releases. Unlike alternatives, it requires no lifecycle function exports or special proxy window imports; just add the plugin. It preserves ES module benefits, provides an experimental JS sandbox, and supports React HMR. The plugin is TypeScript-friendly with bundled type definitions.
npm install vite-plugin-qiankun-liteVerified import paths — ran on the pinned version, not inferred.
Configures a Vite sub-application with the qiankun plugin, enabling micro-frontend integration with sandbox and HMR.
Set sandbox: false or test thoroughly with sandbox enabled.
Disable sandbox if such issues occur, or update the library to use the proxy window (qiankunWindow) manually.
Refer to qiankun documentation for manual lifecycle hook registration; this plugin handles them automatically.
Upgrade Vite to version 4, 5, 6, or 7.
Disable sandbox during development if HMR issues arise.
Use default import: import qiankun from 'vite-plugin-qiankun-lite'
Remove the import of VitePluginQiankunLiteOptions or use import type.
Use window directly or refer to qiankun documentation for the proxy window.
Upgrade Vite to version 4, 5, 6, or 7.