Skip to content

Add documentation about inlinining sources inside source maps #629

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

Merged
merged 1 commit into from
Jun 25, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion docs/sourcemaps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ that maps the minified code back to the original source:
node_modules/uglify-js/bin/uglifyjs {input} \
--source-map-root={relroot}/ \
--source-map-url={name}.map.js \
--source-map={relpath}/{name}.map.js -o {output}
--source-map={relpath}/{name}.map.js \
--source-map-include-sources \
-o {output}


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

.. admonition:: Inline Sources

The instructions above inline your original, un-transformed source files into the generated source map file. Sentry
requires both source map(s) **and** your original source files in order to perform reverse transformations. If you
choose NOT to inline your source files, you must make those source files available to Sentry in *addition* to your
source maps (see below).


Making Source Maps Available to Sentry
--------------------------------------

Expand Down