[Webkit-unassigned] [Bug 244814] New: Web Inspector: incorrect lines when using esbuild sourcemaps

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 5 09:28:32 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=244814

            Bug ID: 244814
           Summary: Web Inspector: incorrect lines when using esbuild
                    sourcemaps
           Product: WebKit
           Version: Safari 15
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: chi187 at gmail.com
                CC: inspector-bugzilla-changes at group.apple.com

I have a minimal example app which could be built with either Rollup (using npm run build:rollup) or esbuild (using npm run build:esbuild).
https://github.com/chicoxyzzy/esbuild-sourcemaps-safari

When I build the app with Rollup and then run the server (npm start), I can see that line of console.error points to correct line (line 7) in Safari Web Inspector
When I build the app with esbuild, it points to the wrong line (the last line of the module — line 15) in Safari Web Inspector

The line is correct for Chrome and Firefox

esbuild GitHub issue: https://github.com/evanw/esbuild/issues/2522

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220905/fc6947b0/attachment-0001.htm>


More information about the webkit-unassigned mailing list