A Vite plugin and wrapper that enables incremental builds for projects that need to build to disk instead of using the Vite dev server. Version 2.0.0 (stable) provides a patching mechanism for Vite config and supports build hooks. Unlike rollup-plugin-incremental, this is Vite-specific and tested mainly with Vue (React should work). Release cadence is low; the package ships TypeScript types.
npm install vite-plugin-incremental-buildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create an incremental build script using viteIncrementalBuild and patchConfig with a typical Vite config.
Ensure your project follows the structure shown in the README.
If using React, test thoroughly before relying on the plugin.
Optimize imports to improve incremental build performance.
For extensions, serve JS from localhost via Vite dev server.
Use import { viteIncrementalBuild } from 'vite-plugin-incremental-build';Use import { patchConfig } from 'vite-plugin-incremental-build';Run npm i -D tsx