Skip to content

Commit bad9dbb

Browse files
committed
[release] webpack.config.js: ignore warnings from yargs dependency
The dependency on 'yargs-parser' and 'yargs-unparser' broke the webpack. The recommended fix from yargs/yargs#781 is to filter out the warnings in the webpack config. Manually tested by running `vsce-package`. Change-Id: Ia0115fd0ccf4a5edfddef4b8f020a70a7e6720a0 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/272093 Trust: Suzy Mueller <[email protected]> Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Suzy Mueller <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/272446 Reviewed-by: Heschi Kreinick <[email protected]> Reviewed-by: Peter Weinberger <[email protected]>
1 parent 1d58376 commit bad9dbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,9 @@ const config = {
4444
// when this is true, the debugger breaks...
4545
minimize: false
4646
},
47+
stats: {
48+
// Ignore warnings due to yarg's dynamic module loading
49+
warningsFilter: [/node_modules\/yargs/]
50+
},
4751
};
4852
module.exports = config;

0 commit comments

Comments
 (0)