For example, the automatic upload of sourcemap is configured through webpack, but the function of sourcemap must be turned on, which results in a large package and unsafe exposure of sourcemap
Do you have to open sourcemap if you want to locate sourcemap?
Can I delete the map file in the project after uploading sourcemap to sentry
It's totally possible, but webpack can be configured not to upload sourcemap. Isn't that easier?
Write a script to delete the map. After uploading the map to the sentry server, execute the script to delete the local map file
What we see now is that if we don't upload the map file, we can't locate the error in sentry, and there is an error in map file 404 in sentry. On the contrary, after uploading the map file on the website, you can locate the error in sentry, but at the same time, you can see the source code in the browser. How did you deal with it in the end?