[Pkg-javascript-devel] Bug#1003260: leaflet-image: FTBFS with webpack5: Invalid configuration object

Caleb Adepitan calebpitan at gmail.com
Wed Jan 26 11:27:10 GMT 2022


Hi Jonas,

Concerning the bug report where leaflet-image build with webpack 5 
breaks due to an invalid configuration object, the major problem wasn't 
from the configuration object, but the `-d` option passed in build 
script in `debian/rules` which specifies a devtool option that has 
become "more strict" in webpack 5. This option passed in the build 
script overrides that in the config file.

The `node` option targeted to mock Node.js fs module with an empty 
object is also no longer relevant. See 
https://webpack.js.org/configuration/resolve/#resolvefallback

Here's a patch that shows my changes: 
https://salsa.debian.org/calebpitan/leaflet-image/-/commit/ff6837954c29706d5154c9d9abb54f92ad0171b2.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x8A1B2CC96775D2D7.asc
Type: application/pgp-keys
Size: 3139 bytes
Desc: OpenPGP public key
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220126/0520f98d/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220126/0520f98d/attachment.sig>


More information about the Pkg-javascript-devel mailing list