From 2ca17d248f61586a898b653f1371d1f364ae7974 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Mon, 23 Sep 2024 15:41:59 +0200 Subject: [PATCH] Revert "fix(Build): Silence SASS 1.79 deprecation warnings, until this is solved in Bootstrap upstream." This reverts commit 6bc653a99c029a0183146681b672cd9b026a66de. This fix isn't needed anymore after applying the change from the previous commit which gets rid of the Bootstrap SCSS includes. --- webpack.config.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 0eefb7fff..7555942f7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -163,25 +163,6 @@ module.exports = () => { ); } - - // Fix for sass-loader to silence deprecation warnings, mainly from BootstrapJS. - // TODO: Remove this when BootstrapJS is updated. - // See: https://github.com/twbs/bootstrap/pull/40864 - - const css_loader_rule = config.module.rules.filter(it=>it?.use?.includes?.("sass-loader")); - if (css_loader_rule.length > 0) { - const sass_loader_index = css_loader_rule[0].use.indexOf("sass-loader"); - css_loader_rule[0].use[sass_loader_index] = { - loader: "sass-loader", - options: { - sassOptions: { - quietDeps: true, - //silenceDeprecations: ['legacy-js-api'], - }, - }, - }; - } - console.log(JSON.stringify(config, null, 4)); return config;