@@ -27,8 +27,8 @@ that maps the minified code back to the original source:
27
27
28
28
node_modules/uglify-js/bin/uglifyjs {input} \
29
29
--source-map-root={relroot}/ \
30
- --source-map-url={name}.map.js \
31
- --source-map={relpath}/{name}.map.js \
30
+ --source-map-url={name}.js.map \
31
+ --source-map={relpath}/{name}.js.map \
32
32
--source-map-include-sources \
33
33
-o {output}
34
34
@@ -52,7 +52,7 @@ Webpack can be configured to output source maps by editing webpack.config.js.
52
52
output: {
53
53
path: path.join(__dirname, 'dist'),
54
54
filename: "[name].js",
55
- sourceMapFilename: "[name].map.js ",
55
+ sourceMapFilename: "[name].js.map ",
56
56
}
57
57
};
58
58
@@ -106,15 +106,15 @@ on the last line, the following directive is found:
106
106
107
107
.. code-block :: javascript
108
108
109
- // # sourceMappingURL=app.map.js
109
+ // # sourceMappingURL=app.js.map
110
110
111
- Sentry will attempt to fetch ``app.map.js `` from http://example.org/js/app.map.js .
111
+ Sentry will attempt to fetch ``app.js.map `` from http://example.org/js/app.js.map .
112
112
113
113
Alternatively, during source map generation you can specify a fully qualified URL where your source maps are located:
114
114
115
115
.. code-block :: javascript
116
116
117
- // # sourceMappingURL=http://example.org/js/app.map.js
117
+ // # sourceMappingURL=http://example.org/js/app.js.map
118
118
119
119
While making source maps available to Sentry from your servers is the easiest integration, it is not always advisable:
120
120
@@ -172,7 +172,7 @@ if a browser (or filesystem) had to resolve its path. So for example, if your so
172
172
reference is just a relative path, it's **relative to the location of the referencing file **.
173
173
174
174
So for example, if you have ``http://example.com/app.min.js ``, and the file contains the
175
- reference to ``app.map.js ``, the name of the uploaded file should be ``http://example.com/app.map.js ``.
175
+ reference to ``app.js.map ``, the name of the uploaded file should be ``http://example.com/app.js.map ``.
176
176
177
177
.. code-block :: bash
178
178
0 commit comments