0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/apps/admin-x-design-system/src/hooks
Daniel Lockyer 7db1cb4f14 Fixed treeshaking for lodash in AdminX apps
refs https://dev.to/pffigueiredo/making-lodash-tree-shakable-3h27
ref https://linear.app/tryghost/issue/DEV-20/faster-builds

- by importing `lodash`, we import a huge 500KB file into all AdminX
  apps
- we only use one function from this, so we can switch to `lodash-es`
  and Vite will treeshake the rest out of the final compiled JS
- this saves 500KB in each AdminX app and improves compile times
2024-09-03 10:18:04 +02:00
..
useGlobalDirtyState.tsx
usePagination.tsx Moved AdminX test config to framework package (#19096) 2023-11-22 13:39:32 +00:00
useSortableIndexedList.tsx Fixed treeshaking for lodash in AdminX apps 2024-09-03 10:18:04 +02:00