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

@@ -51,6 +51,7 @@
"jest": "^29.3.1",
"jest-mock": "^29.3.1",
"lerna": "^4.0.0",
"lodash": "^4.17.21",
"npm-run-all": "^4.1.5",
"path-browserify": "1.0.1",
"prettier": "^2.3.2",