Repository navigation
wrangler@3.21.0
·
6614 commits
to main
since this release
Minor Changes
-
#4423
a94ef570Thanks @mrbbot! - feat: apply source mapping to logged stringsPreviously, Wrangler would only apply source mapping to uncaught exceptions. This meant if you caught an exception and logged its stack trace, the call sites would reference built JavaScript files as opposed to source files. This change looks for stack traces in logged messages, and tries to source map them.
Note source mapping is only applied when outputting logs.
Error#stackdoes not return a source mapped stack trace. This means the actual runtime value ofnew Error().stackand the output fromconsole.log(new Error().stack)may be different.