Cloudflare deploy fail - SQLLite wasm file
I am deploying to Cloudflare and my deployments are failing with the following error:
Error: Failed to publish your Function. Got error: Your Worker exceeded the size limit of 3 MiB. Refer to the Workers documentation (https://developers.cloudflare.com/workers/observability/errors/#errors-on-worker-upload) for more details.
It includes the following chunks which seems to be related to SQLite: wasm/index_bg-dd4dd8881e2df4e6.wasm │ compiled-wasm │ 2420.51 KiB wasm/onig-b1644a9e745f1309.wasm │ compiled-wasm │ 455.67 KiB
Since I am using D1 on Cloudflare it should not be required to have this?
How can I remove this from the build?
The onig wasm file is part of shiki highlighter in MDC module and includes if you are using <MDC> component. Are you using <MDC> component with raw markdown?
If you don't use <MDC> please provide a reproduction sample.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.