From 1c2c5059b5013736b76541aeca27f6f976137439 Mon Sep 17 00:00:00 2001 From: Athos Ribeiro Date: Tue, 24 May 2022 20:16:24 -0300 Subject: [PATCH] Add support for webpack v5 In [1], webpack upstream states that module.rules.loaders was removed. In [2], the upstream docs state that module.rules.loaders is an alias to module.rules.use. Therefore, we patch the config file to switch from the latter to the later. [1] https://webpack.js.org/blog/2020-10-10-webpack-5-release/ [2] https://v4.webpack.js.org/configuration/module/#ruleloaders Signed-off-by: Athos Ribeiro --- webpack.config.builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.builder.js b/webpack.config.builder.js index 9d88f56f34..9b4e806c96 100644 --- a/webpack.config.builder.js +++ b/webpack.config.builder.js @@ -115,7 +115,7 @@ module.exports = function(publicPath, pro, mode) { }, { test: /\.css/, - loaders: ['style-loader', 'css-loader'], + use: ['style-loader', 'css-loader'], include: [devPath] }, {