diff --git a/configs/webpack.config.js b/configs/webpack.config.js index 6c3e88e6..49212e9c 100644 --- a/configs/webpack.config.js +++ b/configs/webpack.config.js @@ -2,11 +2,12 @@ const path = require("path"); const { CleanWebpackPlugin } = require("clean-webpack-plugin"); -const webpack = require("webpack"); -const nodeExternals = require("webpack-node-externals"); /** @type WebpackOptions */ const config = { + stats: { + warningsFilter: /Critical dependency: the request of a dependency is an expression/ + }, target: "node", entry: "./src/extension.ts", output: { @@ -33,14 +34,11 @@ const config = { } ] }, - externals: [ - { - vscode: "commonjs vscode", - "vscode-fsevents": "commonjs vscode-fsevents", - "original-fs": "commonjs original-fs" - }, - nodeExternals() - ], + externals: { + vscode: "commonjs vscode", + "vscode-fsevents": "commonjs vscode-fsevents", + "original-fs": "commonjs original-fs" + }, plugins: [new CleanWebpackPlugin()] }; diff --git a/package.json b/package.json index 6691f414..d2237886 100644 --- a/package.json +++ b/package.json @@ -191,7 +191,6 @@ "node-fetch": "^2.5.0", "recursive-readdir": "^2.2.2", "temp": "^0.9.0", - "vscode-chokidar": "^1.6.5", - "webpack-node-externals": "^1.7.2" + "vscode-chokidar": "^1.6.5" } }