Warning of Chunk Size while bench update V25

Hello Friends,

After upgrading to V15, I am getting warning of Chunk Size being above 500.

It shows when I use bench update — reset

Is there a way to sort this ?

Thanks & Regards

I get the following errors when I run bench update --reset. Warning popup on CLI while Running build command for hrms


[plugin:vite:reporter]
(!) /home/erpnext/frappe-bench-dev/apps/hrms/frontend/src/components/RequestList.vue is dynamically imported by /home/erpnext/frappe-bench-dev/apps/hrms/frontend/src/components/RequestActionSheet.vue but also statically imported by /home/erpnext/frappe-bench-dev/apps/hrms/frontend/src/components/RequestPanel.vue, /home/erpnext/frappe-bench-dev/apps/hrms/frontend/src/views/expense_claim/Dashboard.vue, /home/erpnext/frappe-bench-dev/apps/hrms/frontend/src/views/leave/Dashboard.vue, dynamic import will not move module into another chunk.


(!) Some chunks are larger than 500 kBs after minification. Consider:

  • Using dynamic import() to code-split the application
  • Use build.rollupOptions.output.manualChunks to improve chunking: Configuration Options | Rollup
  • Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.

Did you solve?

Nope !! Still suffering from it. Any success with you ?

Whats the node version you have ?

node v18.17.1 with latest release of Debian

hrms branch?

frappe 15.45.1 version-15
erpnext 15.39.3 version-15
hrms 15.33.0 version-15