Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature Request: Allow large files during local development #7552

Open
DylanRJohnston opened this issue Dec 14, 2024 · 1 comment
Open
Labels
enhancement New feature or request needs reproduction Needs reproduction from OP Workers + Assets

Comments

@DylanRJohnston
Copy link

Describe the solution

Hey all, Wrangler has recently started presenting the following error

Error: Asset too large

Cloudflare Workers supports assets with sizes of up to 25MiB. We found a file
[REDACTED].wasm with a size of 240MiB.
Ensure all assets in your assets directory [REDACTED] conform with
the Workers maximum size requirement.

The issue is caused by debug wasm builds being very very large as you can see. The final production build is only 3MB but I don't want to throw away all the debug information during local development. Wrangler didn't used to produce this error message for local development and I was wondering if you'd consider removing this restriction or turning it into a warning for local development as development assets tend to be far large than their production counterparts.

@penalosa
Copy link
Contributor

Thanks for reporting this! Would you be able to provide a reproduction repo that demonstrates the issue?

@andyjessop andyjessop added the needs reproduction Needs reproduction from OP label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs reproduction Needs reproduction from OP Workers + Assets
Projects
Status: Untriaged
Development

No branches or pull requests

4 participants