Skip to content

Commit 6a49805

Browse files
committed
fix: suppress vscode-languageserver-types Webpack warning
1 parent 68f36fb commit 6a49805

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

docusaurus.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,23 @@ const config = {
8080
],
8181
],
8282

83+
plugins: [
84+
function (context, options) {
85+
return {
86+
name: 'custom-webpack-plugin',
87+
configureWebpack(config, isServer, utils) {
88+
return {
89+
ignoreWarnings: [
90+
{
91+
message: /Critical dependency: require function is used in a way in which dependencies cannot be statically extracted/,
92+
},
93+
],
94+
};
95+
},
96+
};
97+
},
98+
],
99+
83100
presets: [
84101
[
85102
'classic',

0 commit comments

Comments
 (0)