continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
18.65k stars 1.56k forks source link

Replace lodash with es-toolkit #2529

Open DongjaJ opened 2 weeks ago

DongjaJ commented 2 weeks ago

Validations

Problem

lodash is hard to tree-shake, it's CJS, and we want to move to less heavy, ESM dependencies.

improve bundle sizes, replace our usage of Lodash with native JavaScript functionality or alternative libraries where applicable.

This initiative is inspired by the recommendations found in You Don't Need Lodash/Underscore, which outlines many cases where modern JavaScript provides solutions that previously required utility libraries like Lodash.

Solution

Replace lodash with es-toolkit

reference : storybook

sestinj commented 1 week ago

Good call out! We don't use lodash in many places either, so I'd be more than happy to purge it from the entire codebase

Patrick-Erichsen commented 1 week ago

+1, this would be great