A Vite plugin that automatically replaces Lodash imports with es-toolkit equivalents during the build process. Current stable version is 1.1.0, maintained actively with support for Vite 2.3 to 8.x. Key differentiators: no manual code changes required, supports all import patterns (named, default, star, deep paths including .js extensions), and handles renaming. Alternative to manual migration scripts; integrates seamlessly into existing Vite projects using Lodash.
npm install vite-plugin-es-toolkitVerified import paths — ran on the pinned version, not inferred.
Installs and configures the plugin to replace Lodash with es-toolkit in a Vite project.
Upgrade to Vite 5+ or use vite-plugin-es-toolkit@0.x with Vite 4.
Convert require() to import statements in your source files.
Check es-toolkit's coverage; consider fallback lodash imports or manual replacement for missing functions.
Upgrade to Vite 6 or later to ensure compatibility.
Run `npm install vite-plugin-es-toolkit --save-dev`
Use `esToolkitPlugin()` (with parentheses) in the plugins array.
Use `import esToolkitPlugin from 'vite-plugin-es-toolkit'` and ensure all Lodash imports are ESM.