Source: node-webpack Version: 3.5.6-3 Severity: wishlist Control: affects -1 src:gpgme1.0 Control: block 911189 by -1
https://github.com/webpack/webpack/archive/v4.21.0.tar.gz is available upstream. The debian package for webpack has not been updated since 2018-03-08. I'm trying to use webpack to build the GPGME javascript bindings (see https://bugs.debian.org/911189), and that package uses webpack to bundle its javascript. but when i try to build it using the "webpack" binary in unstable, i see errors like so: ----------- 0 dkg@sid:~/src/gpgme/gpgme/lang/js$ npx webpack --config webpack.conf_unittests.js Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration has an unknown property 'mode'. These properties are valid: object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? } For typos: please correct them. For loader options: webpack 2 no longer allows custom properties in configuration. Loaders should be updated to allow passing options via loader options in module.rules. Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader: plugins: [ new webpack.LoaderOptionsPlugin({ // test: /\.xxx$/, // may apply this only for some modules options: { mode: ... } }) ] 1 dkg@sid:~/src/gpgme/gpgme/lang/js$ ----------- I suspect this is due to webpack being out of date in debian unstable. (I can comment out the offending "mode: 'production'" lines from webpack.conf.js as a workaround, but it looks like upstream expects a modern version of webpack) Thanks for maintaining webpack in debian! --dkg -- System Information: Debian Release: buster/sid APT prefers testing-debug APT policy: (500, 'testing-debug'), (500, 'testing'), (200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.18.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)