0.3.1 • Published 1 year ago

vite-plugin-es-toolkit v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm downloads CI

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-toolkit or yarn add es-toolkit.
  • Install by executing npm install vite-plugin-es-toolkit or yarn add vite-plugin-es-toolkit.
  • Import by adding import esToolkitPlugin from 'vite-plugin-es-toolkit'.
  • Use it by adding esToolkitPlugin() to plugins section of your Vite config.

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

0.3.1

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago