[Pkg-javascript-devel] Bug#1003332: Proposed webpack5 compatible patch for node-es6-promise.

Caleb Adepitan calebpitan at gmail.com
Fri Feb 25 23:58:46 GMT 2022


Hi,

I just updated my fork of node-es6-promise which was reported to fail 
build with webpack5 earlier.

I've looked into the problem and found out from the error log that the 
'--output' option has been dropped in webpack5 in favor of 
'--output-filename' and '--output-path'.

I have made changes in the build script in debian/rules accordingly to 
fix this issue.

Ordinarily one would think changing '--output' to '--output-filename' 
fixes it, only to find out soon that it spirals another problem with the 
terser minifier script. A Node.js ENOENT exception is thrown because 
'--output-filename dest-web/es6-promise.js' won't create directory 
'dest-web' till you split it into '--output-path dest-web 
--output-filename es6-promise.js' which makes sure that if 'dest-web' 
doesn't exist, it will be created.

Here's is a link to my patch on salsa 
https://salsa.debian.org/calebpitan/node-es6-promise/-/commit/12990ea0b29c1258dedca858e76328ee7fc6e064.patch

I've run the builds with webpack5 and have made sure build passes

Cheers,

Caleb Adepitan
-------------- 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/20220226/146bf58b/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/20220226/146bf58b/attachment.sig>


More information about the Pkg-javascript-devel mailing list