feat: remove lodash as a dependency (#2378)

This will reduce the bundle size by ~23%(117kb).

Only 4 methods were used `flatten`, `flatMap`, `omitBy`, and `groupBy`.

`omitBy and `groupBy` were recreated while the es2019 implementations of
`flatten` and `flatMap` are used.

`lodash` is still used in the tests which is fine because it makes the
tests cleaner.

Closes #2118
This commit is contained in:
Caleb Kniffen
2023-07-25 17:07:26 -05:00
parent 30bbc3f837
commit cfb64c3f88
13 changed files with 181 additions and 127 deletions

View File

@@ -2,6 +2,7 @@
"compilerOptions": {
"composite": true,
"module": "commonjs",
"lib": ["es2019", "dom"],
"moduleResolution": "node",
"esModuleInterop": true,
"sourceMap": true,