-
-
Notifications
You must be signed in to change notification settings - Fork 49
feat: support hidden source maps to map error stack traces from crash reports #854
Conversation
e1fc92d
to
153e796
Compare
templates/webpack.angular.js
Outdated
@@ -96,6 +97,13 @@ module.exports = env => { | |||
additionalLazyModuleResources: additionalLazyModuleResources | |||
}); | |||
|
|||
let sourceMapFilename = "[file].map"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it'll be better to extract this function to common place and reuse it in all config files.
153e796
to
d27f621
Compare
@DimitarTachev is there an example somewhere on how to actually use source map? How to have stack replaced using source maps? |
@farfromrefug, unfortunately, this example is still in our backlog. We've just validated that the source maps are properly generated externally (having the proper content and not linked in the source files) as described in the related issue. @edusperoni, did you try this feature and could you share some info about the steps for applying the external source maps in the error reporting tools? |
You could try online tools like https://sourcemaps.info/ Usually debugging the stacktrace with hidden sourcemaps will be a pain, but basically you'll get something like: |
@DimitarTachev @edusperoni i am more for other approaches. I actually have 2 of them:
Now i was asking here to see if the {N} team had other solutions. It's been said for a long time that {N} supports source maps, though i could never find a way to actually use them ... |
It is not clear how to make the sourcemap file contenthash match the original script. |
The
hidden-source-map
is the same assource-map
, but it doesn't add a reference comment to the bundle. It is meant to be used when you only want SourceMaps to map error stack traces from error reports from tools like crashlytics, but you don't want to expose your SourceMap for the development tools in the release builds.PR Checklist
Related to: #817