Sign in

Sentry configures sourcemap, but it doesn't want to see sourcemap in the front console. What should I do

marcino239 edited in Mon, 10 Oct 2022

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

3 Replies
commented on Mon, 10 Oct 2022

It's totally possible, but webpack can be configured not to upload sourcemap. Isn't that easier?

commented on Tue, 11 Oct 2022

Write a script to delete the map. After uploading the map to the sentry server, execute the script to delete the local map file

commented on Tue, 11 Oct 2022

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?

lock This question has been locked and the reply function has been disabled.