From 04f2bedaf8e3388a3333524a6b6a26b012efcfac Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 1 Jul 2019 15:25:26 +0400 Subject: [PATCH 1/2] Fix webpack build process --- configs/webpack.config.js | 18 ++++++++---------- package.json | 3 +-- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/configs/webpack.config.js b/configs/webpack.config.js index 6c3e88e6..68061497 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: { + warnings: false + }, 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" } } From ca85be230d98afc724e253460bd97fbf6321aceb Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 1 Jul 2019 15:35:59 +0400 Subject: [PATCH 2/2] Only ignore warning from express --- configs/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/webpack.config.js b/configs/webpack.config.js index 68061497..49212e9c 100644 --- a/configs/webpack.config.js +++ b/configs/webpack.config.js @@ -6,7 +6,7 @@ const { CleanWebpackPlugin } = require("clean-webpack-plugin"); /** @type WebpackOptions */ const config = { stats: { - warnings: false + warningsFilter: /Critical dependency: the request of a dependency is an expression/ }, target: "node", entry: "./src/extension.ts",