The bundle size limitation
Unanswered
jobless posted this in #help-forum
joblessOP
I got
Any suggestion on how to reduce the bundle size, This is the lib that taken mostly of my space Three.js, Motion, Mui, I have asking claude, It said I shall remove those lib,
I have try remove the edge runtime.
2026-06-12T06:50:18.411289Z │ Total (82 modules) │ │ 136657.83 KiB │
2026-06-12T06:50:18.51029Z [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mThe package "node:buffer" wasn't found on the file system but is built into node.[0m
2026-06-12T06:50:18.510589Z
2026-06-12T06:50:18.510717Z Your Worker may throw errors at runtime unless you enable the "nodejs_compat" compatibility flag. Refer to [4mhttps://developers.cloudflare.com/workers/runtime-apis/nodejs/[0m for more details. Imported from:
2026-06-12T06:50:18.512452Z ✨ Compiled Worker successfully
2026-06-12T06:50:19.360239Z Generated Pages Functions bundle size (140032550) is over the limit of 25.0 MiB
2026-06-12T06:50:20.121Z Failed: generating Pages Functions failed. Check the logs above for more information. If this continues for an unknown reason, contact support: https://cfl.re/3WgEyrHAny suggestion on how to reduce the bundle size, This is the lib that taken mostly of my space Three.js, Motion, Mui, I have asking claude, It said I shall remove those lib,
I have try remove the edge runtime.