[Pkg-javascript-devel] Bug#922824: Bug#922824: sourceMappingURL in minified js seems to point to the wrong location

Jonas Smedegaard jonas at jones.dk
Thu Feb 21 13:51:11 GMT 2019


Quoting Enrico Zini (2019-02-21 13:18:52)
> On Thu, Feb 21, 2019 at 11:05:00AM +0100, Jonas Smedegaard wrote:
> 
> > Using source-maps for browsing into sources requires somehow serving 
> > those source files, and hinting e.g. with the "SourceMap" http 
> > header where they are located.
> > 
> > I imagine it would be possible to setup a static Apache2 hint to 
> > point to the sources served at https://sources.debian.org/
> > 
> > Does that make sense?  If so, then I believe this "bug" is more lack 
> > of documentation than the Boostrap package being wrong.
> > 
> > Thanks a lot for your interest in these details, and sorry this was 
> > not already in a more polished state,
> 
> The .map files are already included in the debian packages and are not 
> so big; bringing in sources.debian.org is a digression I'm not sure I 
> can follow. Maybe my bug report wasn't that clear and I led you on 
> some wild goose chase? I hope I made it clearer now.
> 
> For my use the sourceMappingURL comment is a browser-side thing, and 
> browser-side, at the moment, bootstrap4 is set up so that the browser 
> doesn't find the .map files, while it finds them for other packages: 
> see the bootstrap4 and underscore comparison in my example above.

Ahh, issue is link in Javascript to map file.

I mistook the issue to be links in map file to source javascript.

Also, I misremembered Bootstrap4 as being one of the packages I had 
recently streamlined regarding source-mapping.  I am happy that you 
mention underscore - that's one of those I looked at recently :-)

I have now removed myslf as uploader of bootstrap4 to reduce risk of 
similar confusion in future.  Sorry for the noise!


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20190221/328f1128/attachment-0001.sig>


More information about the Pkg-javascript-devel mailing list