Skip to content

Commit b99ff5d

Browse files
authored
Add SystemJS example source map configuration (#630)
1 parent c2f59cb commit b99ff5d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/sourcemaps.rst

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,24 @@ Webpack can be configured to output source maps by editing webpack.config.js.
5757
}
5858
};
5959

60+
SystemJS
61+
~~~~~~~~
62+
63+
SystemJS is the default module loader for Angular 2 projects. The `SystemJS build tool
64+
<https://github.com/systemjs/builder>`_ can be used to bundle, transpile, and minify source code for
65+
use in production environments, and can be configured to output source maps.
66+
67+
::
68+
69+
builder.bundle('src/app.js', 'dist/app.min.js', {
70+
minify: true,
71+
sourceMaps: true,
72+
sourceMapContents: true
73+
});
74+
6075
.. admonition:: Inline Sources
6176

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

0 commit comments

Comments
 (0)