SAP / luigi

Micro frontend framework

Home Page:https://luigi-project.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check Core bundle size warning when building code locally

ndricimrr opened this issue · comments

Screenshot 2024-04-18 at 18 32 58

Investigate where it comes from or when. Can we disable the warning or increase the limit or somehow decrease the size altogether

It comes from Vite config where 'chunkSizeWarningLimit' is set to 530 kB - what's interesting, in 'bundlesize' script limit for reported 'luigi.js' file is set to 650 kB and its original size on Windows is 519 kB (in Vite output it's 531 kB - 'core/public/luigi.js')

Possible solutions - either we increase the limit in Vite config or investigate how to decrease the size of 'luigi.js' file (dynamic imports might be a good option)