Workers - Source Maps are Generally Available
1y ago
Source
CloudflareWorkers - Source Maps are Generally Availablecloudflare.comSource maps are now Generally Available (GA). You can now be uploaded with a maximum gzipped size of 15 MB. Previously, the maximum size limit was 15 MB uncompressed. Source maps help map between the original source code and the transformed/minified code that gets deployed to production. By uploading your source map, you allow Cloudflare to map the stack trace from exceptions onto the original source code making it easier to debug. With no source maps uploaded : notice how all the Javascript has been minified to one file, so the stack trace is missing information on file name, shows incorrect line numbers, and incorrectly references js instead of ts . With source maps uploaded : all methods reference the correct files and line numbers. Uploading source maps and stack trace remapping happens out of band from the Worker execution, so source maps do not affect upload speed, bundle size, or cold starts. The remapped stack traces are accessible through Tail Workers, Workers Logs, and Workers Logpush. To enable source maps, add the following to your Pages Function's or Worker's wrangler configuration: wrangler.jsonc { " upload_source_maps " : true } wrangler.toml upload_source_maps = true
You might also wanna read
Understanding JavaScript Source Maps: How They Map Compiled Code to Original Sources
This article provides a technical deep dive into JavaScript source maps, explaining how they work to map minified or compiled JavaScript cod
The Standardization of Source Maps: From Informal Documentation to Official Web Development Standards
The article discusses the evolution of source maps in web development, highlighting how the lack of an official standard for years hindered
bloomberg.github.io·3mo ago
Cloudflare Outage Linked to Rust Code Rewrite from C
The article discusses Cloudflare's largest-ever outage, attributing it to a significant factor: code rewritten from C to Rust. The Rust-base

Comments
Sign in to join the conversation.
No comments yet. Be the first.