[Pkg-javascript-devel] Bug#1003260: leaflet-image: FTBFS with webpack5: Invalid configuration object
Jonas Smedegaard
jonas at jones.dk
Wed Jan 26 13:15:10 GMT 2022
Hi Caleb,
Quoting Caleb Adepitan (2022-01-26 12:27:10)
> 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
Thanks, I did indeed not notice the relevancy of the -d option.
Unfortunately I cannot tell if your proposed patch is working or not,
however - seems webpac5 is broken in experimental currently (undeclared
dependency on node-import-local - which by the way horribly pulls in a
pile of unneeded packages including babel - and even then webpack throws
error - and horribly does not fail but continues with - I assume -
broken code). :-(
Let's continue this when webpack5 in experimental works.
- 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/20220126/158afdf4/attachment.sig>
More information about the Pkg-javascript-devel
mailing list