contentful / contentful-resolve-response

Resolve items & includes of a Contentful API response into a proper object graph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Large bundle size due to lodash-contrib

skevy opened this issue · comments

Hey there.

We're using webpack as our module bundler, and are pulling in your contentful package in through npm.

I just ran a analyzation of the size of my final JS bundle, and I noticed contentful (and it's dependencies) were the cause of 17.2% of my bundle (616.87 kB) unminified.

After looking into it a bit deeper, contentful-resolve-response is using lodash-contrib, which is probably unnecessary, given the fact that you guys are only using 5 of lodash-contrib's functions.

I'm wondering if you'd be willing to slim down the dependencies here for the sake of bundle sizes everywhere.

Thanks!
-Adam