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

Attachment: OpenPGP_0x8A1B2CC96775D2D7.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to