re: Stop using `console.log`, start using your DevTools 🛠️ VIEW POST

re: 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 ...

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.

code of conduct - report abuse