Docs/fix lodash import: saved 15kB of import size#4318
Docs/fix lodash import: saved 15kB of import size#4318ljosberinn merged 2 commits intochakra-ui:mainfrom
Conversation
|
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/chakra-ui/chakra-ui/ATeeasByUwdkveuu7wEtYTj7wbME |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 387538e:
|
|
@ljosberinn is there anything I could do to merge this? |
|
sorry I'm not really involved with managing the repo at this time but considering all tests have passed and its quite clear this works as expected we can safely go ahead here :) |
📝 Description
Change the
lodashimports to import individual functions inside the package :)This saves 15kB of not importing the whole
lodash(since its index.js is CJS bundle.)793kB -> 778kB (-1.9%)
⛳️ Current behavior (updates)
🚀 New behavior
💣 Is this a breaking change (Yes/No):
No.
📝 Additional Information
Originally from #4292 (comment)