Skip to content

Commit c2f59cb

Browse files
authored
Add documentation about inlinining sources inside source maps (#629)
1 parent aa5a6f3 commit c2f59cb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/sourcemaps.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ that maps the minified code back to the original source:
2929
node_modules/uglify-js/bin/uglifyjs {input} \
3030
--source-map-root={relroot}/ \
3131
--source-map-url={name}.map.js \
32-
--source-map={relpath}/{name}.map.js -o {output}
32+
--source-map={relpath}/{name}.map.js \
33+
--source-map-include-sources \
34+
-o {output}
3335

3436

3537
Webpack
@@ -55,6 +57,14 @@ Webpack can be configured to output source maps by editing webpack.config.js.
5557
}
5658
};
5759

60+
.. admonition:: Inline Sources
61+
62+
The instructions above inline your original, un-transformed source files into the generated source map file. Sentry
63+
requires both source map(s) **and** your original source files in order to perform reverse transformations. If you
64+
choose NOT to inline your source files, you must make those source files available to Sentry in *addition* to your
65+
source maps (see below).
66+
67+
5868
Making Source Maps Available to Sentry
5969
--------------------------------------
6070

0 commit comments

Comments
 (0)