You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/changelog/workers/2025-03-25-gzip-source-maps.mdx
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Source Maps are Generally Available
3
3
description: Source maps are now Generally Available with a larger maximum size limit
4
4
products:
5
5
- workers
6
-
date: 2025-03-25T12:00:00Z
6
+
date: 2025-03-25T00:00:00Z
7
7
---
8
8
9
9
import { WranglerConfig } from"~/components";
@@ -16,17 +16,19 @@ to production. By uploading your source map, you allow Cloudflare to map the sta
16
16
onto the original source code making it easier to debug.
17
17
18
18

19
-
**No Source Map 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`.
19
+
20
+
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`.
20
21
21
22

22
-
**With Source Map uploaded**: all methods reference the correct files and line numbers.
23
+
24
+
With **source maps uploaded**: all methods reference the correct files and line numbers.
23
25
24
26
Uploading source maps and stack trace remapping happens out of band from the Worker execution,
25
27
so source maps do not affect upload speed, bundle size, or cold starts. The remapped stack
26
28
traces are accessible through Tail Workers, Workers Logs, and Workers Logpush.
27
29
28
30
To enable source maps, add the following to your
29
-
[Pages Function's](pages/functions/source-maps/) or [Worker's](/workers/observability/source-maps/) wrangler configuration:
31
+
[Pages Function's](/pages/functions/source-maps/) or [Worker's](/workers/observability/source-maps/) wrangler configuration:
Copy file name to clipboardExpand all lines: src/content/docs/workers/observability/source-maps.mdx
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,10 +78,12 @@ Consider a simple project. `src/index.ts` serves as the entrypoint of the applic
78
78
Let's see how source maps can simplify debugging an error in the ComplexCalculator class.
79
79
80
80

81
-
**No Source Map 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`.
81
+
82
+
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`.
82
83
83
84

84
-
**With Source Map uploaded**: all methods reference the correct files and line numbers.
85
+
86
+
With **source maps uploaded**: all methods reference the correct files and line numbers.
0 commit comments