Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚑ vite-plugin-es-toolkit: Vite plugin for replacing Lodash with es-toolkit #593

Open
wojtekmaj opened this issue Sep 23, 2024 · 1 comment

Comments

@wojtekmaj
Copy link
Contributor

Problem:

  • You already use es-toolkit 🀩
  • The dependency you just can't live without (recharts for me!) still uses Lodash πŸ˜’
  • You have both es-toolkit and Lodash in your bundle 😭

Solution:

vite-plugin-es-toolkit

How to use?

  • 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 like so:
    import { defineConfig } from 'vite';
    import esToolkitPlugin from 'vite-plugin-es-toolkit';
    
    export default defineConfig({
      plugins: [
        esToolkitPlugin(),
      ],
    });

Enjoy!

@raon0211 raon0211 pinned this issue Sep 24, 2024
@raon0211
Copy link
Collaborator

Thanks for creating such a great plugin πŸ˜ƒ

@wojtekmaj wojtekmaj changed the title Introducing vite-plugin-es-toolkit: Vite plugin for replacing Lodash with es-toolkit vite-plugin-es-toolkit: Vite plugin for replacing Lodash with es-toolkit Dec 15, 2024
@wojtekmaj wojtekmaj changed the title vite-plugin-es-toolkit: Vite plugin for replacing Lodash with es-toolkit ⚑ vite-plugin-es-toolkit: Vite plugin for replacing Lodash with es-toolkit Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants