TIL the lodash package is CommonJS and isn't tree-shaken!
This PR replaces lodash with lodash-es which is an ES modules version of the package which allows tree-shaking.
I've confirmed this by comparing the non-minified built files before and after. There are a bunch of lodash functions included with the build on master that are not on this branch. The total reduction in the minified build is something like ~70kB
Check List
[x] I have read CONTRIBUTING.md and added my name as a Code Contributor.
[x] Contains logically grouped changes (else tidy your branch by rebase).
[x] Does not contain off-topic changes (use other PRs for other changes).
TIL the
lodash
package is CommonJS and isn't tree-shaken!This PR replaces
lodash
withlodash-es
which is an ES modules version of the package which allows tree-shaking.I've confirmed this by comparing the non-minified built files before and after. There are a bunch of lodash functions included with the build on master that are not on this branch. The total reduction in the minified build is something like ~70kB
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.