From d9afbf12bf7894b6395d988e1c8aba99fc5f1b8c Mon Sep 17 00:00:00 2001 From: Jack Reed <phillipjreed@gmail.com> Date: Mon, 14 Oct 2019 20:43:17 -0600 Subject: [PATCH] Update to webpack 5 --- package.json | 4 ++-- webpack.config.js | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6b7690da9..b26da9c7b 100644 --- a/package.json +++ b/package.json @@ -112,8 +112,8 @@ "style-loader": "^0.23.1", "supertest": "^4.0.2", "terser-webpack-plugin": "^1.3.0", - "webpack": "^4.35.3", - "webpack-cli": "^3.3.5" + "webpack": "5.0.0-beta.0", + "webpack-cli": "^3.3.9" }, "peerDependencies": { "react": "^16.8.3", diff --git a/webpack.config.js b/webpack.config.js index 8e008757c..eb5e6ebc2 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -64,7 +64,14 @@ const baseConfig = [ resourceRegExp: /@blueprintjs\/(core|icons)/, // ignore optional UI framework dependencies }), ], - resolve: { extensions: ['.js'] }, + resolve: { + alias: { + http: false, + https: false, + url: false, + }, + extensions: ['.js'], + }, }, ]; -- GitLab