[Pkg-javascript-devel] Bug#922824: Bug#922824: sourceMappingURL in minified js seems to point to the wrong location
Xavier
yadd at debian.org
Thu Feb 21 16:08:16 GMT 2019
Le 21/02/2019 à 14:51, Jonas Smedegaard a écrit :
> 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
I also fixed .map generation in libjs-bootstrap4 4.3.1+dfsg2-1
More information about the Pkg-javascript-devel
mailing list