Source map is all you need.
I don’t think anyone will put debugger statements in production either
Does anyone put source map in production, though?
And on dev, source map is not a panacea - it does not translate 1:1 to the compiled code, which makes setting traps even more difficult. Also work horribly with code injected in live dev through eval().
No you won’t put source maps in prod, but in test or uat where it’s close to prod, but I don’t assume you put console.log in prod either, or wait for how many minutes your build will take for each debugging session
There were times I did put console.log() (or equivalent) to production - to debug a particularly difficult bug, that only appeared on production for very specific users. We managed to finally track the bug by log analysis.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.