Vite plugin (v1.1.1) to convert Vite-based projects into single-spa root or micro-frontend applications. Supports Vite 5, 6, and 7. Maintained by WJSoftware, but now in maintenance-only mode after the author's decision to discontinue feature development due to disputes. Key differentiator: opinionated integration of Vite with single-spa, handling asset naming, FOUC prevention, and CSS lifecycle exports. Provides TypeScript types and ESM-first exports.
npm install vite-plugin-single-spaVerified import paths — ran on the pinned version, not inferred.
Configures a Vite project as a single-spa root config with import maps and plugin options.
Update Vite to ^5.0.0 || ^6.0.0 || ^7.0.0.
Ensure compatibility with other Vite plugins that also use resolveId with 'pre' order.
Update plugin to v1.1.1 and verify CSS lifecycle works.
Evaluate other single-spa integrations or contribute to this project.
Create src/spa.ts exporting lifecycle functions.
Upgrade to v0.6.0 or later where this was fixed.
Upgrade Vite to ^5.0.0 or update plugin to v0.7.0.