3 ms·
sourcemaps should be enabled -- that's how people learn. a lot of people learned to code on the web via viewsource - now we are obfuscating the code
by dzonga 1y ago
sourcemaps should be enabled -- that's how people learn.
a lot of people learned to code on the web via viewsource - now we are obfuscating the code
- zerr 1y agoProbably due to usage of fat front end frameworks which also include whole business logics.
- namegulf 1y agosourcemaps are not for learning, it's for debugging
- embedding-shape 1y agoSome sites want to ship small bundles to the client by default, sourcemaps enables that + you get to introspect it because it's downloaded only when requested. Literally best of both worlds :)
- samdoesnothing 1y agoI love shipping source maps for my stuff bc it lets other developers take a peek and I love doing that with other peoples sites :)
- samtheprogram 1y agoIdk why you are getting downvoted. To elaborate on your comment, if you just ship sourcemaps in production, that means you can ship minified code and track down what _actual_ source that you _aren't_ shipping to users is getting called, is in stack traces, etc. I'm not aware of a point of sourcemaps otherwise.
- silverwind 1y agoYep, sourcemaps are essential to get usable error stack traces, and that's their only purpose.