I am developing a chrome extension and a website that have common functionality.
As I want to detect any potential errors I implemented sentry js into my codebase.
Sentry does, however, need the //# sourceMappingUrl= comment at the end of each minified file so it can display the unminified code in the sentry issues tab.
The problem I'm facing is that the chrome-extension causes chrome to log many warnings about the missing source maps(.js.map), which I obviously don't want in production.
The website on the other hand still has the sourceMappingUrl comment in all of its minified chunks, but chrome does not log and warnings.
You can take a look at the image below for the chrome extension.
P.S If I remove the source sourceMappingUrl comment, then chrome does not log anything.
But why are there no warnings for the website is my question. Any help is much appreciated !