WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 235607
244814
Web Inspector: incorrect line numbers when using esbuild sourcemaps
https://bugs.webkit.org/show_bug.cgi?id=244814
Summary
Web Inspector: incorrect line numbers when using esbuild sourcemaps
Sergey Rubanov
Reported
2022-09-05 09:28:32 PDT
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
Attachments
Add attachment
proposed patch, testcase, etc.
Sergey Rubanov
Comment 1
2022-09-05 14:21:03 PDT
Looks like it was fixed already. Safari Technology Preview 152 (Safari 16.0, WebKit 17615.1.2.3) shows correct line
Sergey Rubanov
Comment 2
2022-09-12 19:19:46 PDT
Lines are incorrect in Safari 16.0 (17614.1.25.9.10, 17614)
Radar WebKit Bug Importer
Comment 3
2022-09-12 19:20:19 PDT
<
rdar://problem/99850296
>
Sergey Rubanov
Comment 4
2022-09-14 16:12:43 PDT
It seems that line numbers are correct in 16.1 beta (17614.2.5, 17614)
Patrick Angle
Comment 5
2022-09-20 13:23:45 PDT
*** This bug has been marked as a duplicate of
bug 235607
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug