DEV Community

Discussion on: How to Use Source Maps in TypeScript Lambda Functions (with Benchmarks)

 
elthrasher profile image
Matt Morgan

I don't know of a way to reverse-engineer the stack trace into something readable using a SourceMap. It might not be possible because your logged stack trace is probably missing some details.

IMO the cost of a larger bundle isn't a very high price since it doesn't impact latency unless you throw an error. I suspect a lot of people will compromise by enabling sourcemaps early in projects or when there's a tricky bug to fix.