remix-seo
remix-seo copied to clipboard
Replace lodash dependency with lodash.isequal.
Using the lodash dependency brings in the entire lodash library, which is an issue for some serverless environments like Cloudflare Pages/Workers which require a quick start up time. This commit replaces the lodash library with the isEqual function that is being used.
According to https://lodash.com/per-method-packages, the Lodash per-method packages are "discouraged and they will be removed in v5."
The following results in small code bundles provided that you are using tree shaking:
import isEqual from "lodash/isEqual";
See #12.
Note that this PR does not represent the current best practice for using lodash with bundlers. I suggest #12 instead.