[Webkit-unassigned] [Bug 110493] Web Inspector: Segment built files by module boundaries as alternative to sourceURL

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 21 16:17:41 PST 2013


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





--- Comment #5 from johnjbarton <johnjbarton at chromium.org>  2013-02-21 16:20:03 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > How about generating a source-map from the bundle to the original source?
> 
> For me, source maps are a bit unwieldy to use,

Right, that should be fixed!

> and it should be possible to get these benefits without needing to resort to source maps, particularly when minification is not involved.

But if we fixed source maps UX, we'd get a lot more bang for the cost.

> 
> Source maps seem to deal with file paths, where modules with IDs are not directly tied to specific file paths. In the case of a reusable library that is made up of some internal modules, it does not seem to align with an approach that is file path-based.

But your goals include mapping line numbers to unbundled files and navigation by file name.  That sounds exactly like what source maps should do.

I think your concatenator could build the source map using 
https://github.com/mozilla/source-map/ 
pretty easy then we could find out exactly what the unwieldy bits are.
We might conclude that there is no hope or we might conclude that source
maps can be a lot better.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list