From 40dc72a4b5e50055e5f8f8b22f4942f805a629c5 Mon Sep 17 00:00:00 2001 From: Igor <35524806+igorschoester@users.noreply.github.com> Date: Fri, 12 Apr 2024 20:25:34 +0200 Subject: [PATCH] Webpack config: do not build chart.js library --- config/webpack/webpack.config.base.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/config/webpack/webpack.config.base.js b/config/webpack/webpack.config.base.js index e92574c7f80..3c82c356d74 100644 --- a/config/webpack/webpack.config.base.js +++ b/config/webpack/webpack.config.base.js @@ -11,15 +11,6 @@ const { yoastExternals } = require( "./externals" ); let analyzerPort = 8888; module.exports = function( { entry, output, combinedOutputFile, cssExtractFileName } ) { - const exclude = /node_modules[/\\](?!(chart.js)[/\\]).*/; - // The index of the babel-loader rule. - let ruleIndex = 0; - if ( process.env.NODE_ENV !== "production" ) { - ruleIndex = 1; - defaultConfig.module.rules[ 0 ].exclude = [ exclude ]; - } - defaultConfig.module.rules[ ruleIndex ].exclude = exclude; - return { ...defaultConfig, optimization: {