We are using a front-end error logging tool Sentry
to see the errors we get in our angular applications.
Sentry
allows users to upload their SourceMap files, so I went into our angular.json
and set "sourceMap": true
. As expected, it creates a lot of .js.map
files that we upload to Sentry
, but we get rid of them and do not deploy them, for the obvious security reasons.
The problem is that for some reason, Google Chrome Dev Tools somehow know that SourceMap files were generated and even tries to access them!
So here is my question:
- How does Google Chrome work out that SourceMapswere generated? I assume something in the
html
,css
orjs
files tells this. - How do I work around that? I want to get the SourceMaps, but I don't want anyone to know that they exist and especially their locations.
Side note: Although I mention Sentry multiple times, it has nothing to do with the question. I just wanted to explain, why we want this.