I noticed that lodash is currently included as a dependency but appears to be used only once inside gatsby-node.js.
Since native array methods like .forEach() provides equivalent functionality, we could:
-
Replace _.each with forEach
-
Remove the lodash dependency (if not used elsewhere)
-
Simplify the GraphQL query in createPages to only fetch required fields (id and fields.slug)
-
This would slightly reduce dependency surface and improve maintainability.
If this approach aligns with project direction, I’d be happy to submit a PR @krisstern .
Thanks!