content icon indicating copy to clipboard operation
content copied to clipboard

Cloudflare deploy fail - SQLLite wasm file

Open ljcremer opened this issue 9 months ago • 2 comments

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?

ljcremer avatar Mar 31 '25 12:03 ljcremer

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.

farnabaz avatar Mar 31 '25 13:03 farnabaz

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.

github-actions[bot] avatar May 30 '25 13:05 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity.

github-actions[bot] avatar Jun 29 '25 14:06 github-actions[bot]