deno
8971250e - fix(cli): preserve profiler line numbers under inspector

Commit
151 days ago
fix(cli): preserve profiler line numbers under inspector Chrome DevTools performance profiles use V8's raw function locations and don't apply source maps in the flame graph. Deno's normal TypeScript transpile collapses type-only declarations, so profiles can point at generated-line positions instead of the source. When an inspector session is enabled, keep the normal SWC transpilation path, then pad generated JavaScript lines according to the emitted source map and rewrite the map to match. This preserves raw V8 line numbers for profiler call frames while keeping mapped diagnostics and DevTools Sources behavior coherent. Closes #25349 Co-Authored-By: Divy Srivastava <me@littledivy.com>
Author
Committer
Parents
Loading