Skip to content

Commit 05847b7

Browse files
committed
Now ignoring the webpack warning of a dependency
1 parent d4ce528 commit 05847b7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

webpack.config.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ const path = require('path');
1111
const extensionConfig = {
1212
target: 'node', // vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
1313
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
14-
1514
infrastructureLogging: {
1615
level: 'log'
1716
},
18-
17+
ignoreWarnings: [
18+
{
19+
// Ignore: Critical dependency: the request of a dependency is an expression
20+
// keyv is a dependency of got -> cacheable-request. The cache functionallity is not used by this extension.
21+
module: /\.\/node_modules\/keyv\/src\/index\.js/
22+
}
23+
],
1924
entry: './src/extension.ts', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
2025
output: {
2126
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/

0 commit comments

Comments
 (0)