Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/wojtekmaj/vite-plugin-es-toolkit. Vite plugin for replacing Lodash with es-toolkit
Something went wrong. Try again.
TypeScript 99%
JavaScript <1%
<1%
Commits 106
Bump postcss from 8.5.22 to 8.5.26
Signed-off-by: dependabot[bot] <support@github.com>
README.md
vite-plugin-es-toolkit #
Vite plugin for replacing Lodash with es-toolkit, a smaller, faster, and more tree-shakable alternative.
tl;dr #
- Install es-toolkit, if you haven't already, by executing
npm install es-toolkitoryarn add es-toolkit. - Install by executing
npm install vite-plugin-es-toolkitoryarn add vite-plugin-es-toolkit. - Import by adding
import esToolkitPlugin from 'vite-plugin-es-toolkit'. - Use it by adding
esToolkitPlugin()topluginssection of your Vite config.
Getting started #
To use this plugin, you need to have es-toolkit installed in your project. The minimum required version is 1.11.0, but 1.39.3 or later is recommended to ensure 100% compatibility with Lodash.
Usage #
Here's an example of basic configuration:
import { defineConfig } from 'vite';
import esToolkitPlugin from 'vite-plugin-es-toolkit';
export default defineConfig({
plugins: [
esToolkitPlugin(),
],
});
Tip
Measure actual impact of vite-plugin-es-toolkit on your codebase with Vite Compare Bundle Size GitHub Action.
License #
The MIT License.
Author #
|
|
Wojciech Maj |