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

Attachment: OpenPGP_0x8A1B2CC96775D2D7.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to