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

(!) /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.