From 20d84755bb37366c449e3890e48cbafa17bc7c56 Mon Sep 17 00:00:00 2001 From: Nabhag Motivaras <65061890+Nabhag8848@users.noreply.github.com> Date: Fri, 16 Aug 2024 19:48:45 +0530 Subject: [PATCH] fix: exclude tabler/icons-react from optimizeDeps to avoid crashing performance CI (#6621) ## ISSUE (Warning) - Fixes #6437 ### Things needed to investigate : - [x] Can we exclude @tabler-icons from Babel / wyw-in-js / the vite config of Storybook ? > Yes we can - [ ] Is there a reproducible difference between non-Linaria components loading time and Linaria components loading times ? > Couldn't find anything related to this, yet. but changes fix the problem. --- packages/twenty-front/vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/twenty-front/vite.config.ts b/packages/twenty-front/vite.config.ts index 924f9c9d7ee0..a711d05916f1 100644 --- a/packages/twenty-front/vite.config.ts +++ b/packages/twenty-front/vite.config.ts @@ -104,5 +104,8 @@ export default defineConfig(({ command, mode }) => { localsConvention: 'camelCaseOnly', }, }, + optimizeDeps: { + exclude: ['@tabler/icons-react'], + }, }; });