Skip to content

Add SystemJS example source map configuration #630

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 26, 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
17 changes: 16 additions & 1 deletion docs/sourcemaps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,24 @@ Webpack can be configured to output source maps by editing webpack.config.js.
}
};

SystemJS
~~~~~~~~

SystemJS is the default module loader for Angular 2 projects. The `SystemJS build tool
<https://github.com/systemjs/builder>`_ can be used to bundle, transpile, and minify source code for
use in production environments, and can be configured to output source maps.

::

builder.bundle('src/app.js', 'dist/app.min.js', {
minify: true,
sourceMaps: true,
sourceMapContents: true
});

.. admonition:: Inline Sources

The instructions above inline your original, un-transformed source files into the generated source map file. Sentry
All of the example configurations 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).
Expand Down