From be45a94a6fd8ca867794f9e44e31a61d29297eab Mon Sep 17 00:00:00 2001 From: Tadayoshi Sato Date: Wed, 12 Jun 2024 13:38:42 +0900 Subject: [PATCH] fix(console,examples): fix console build by ignoring warnings --- console/craco.config.js | 5 ++++- examples/sample-plugin/craco.config.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/console/craco.config.js b/console/craco.config.js index 8f1ba3d315..034ca1914b 100644 --- a/console/craco.config.js +++ b/console/craco.config.js @@ -49,7 +49,10 @@ module.exports = { webpackConfig.output.publicPath = 'auto' // For suppressing sourcemap warnings coming from some dependencies - webpackConfig.ignoreWarnings = [/Failed to parse source map/] + webpackConfig.ignoreWarnings = [ + /Failed to parse source map/, + /Critical dependency: the request of a dependency is an expression/, + ] webpackConfig.resolve = { ...webpackConfig.resolve, diff --git a/examples/sample-plugin/craco.config.js b/examples/sample-plugin/craco.config.js index db23aad48f..a92927beda 100644 --- a/examples/sample-plugin/craco.config.js +++ b/examples/sample-plugin/craco.config.js @@ -53,7 +53,10 @@ module.exports = { } // For suppressing sourcemap warnings from dependencies - webpackConfig.ignoreWarnings = [/Failed to parse source map/] + webpackConfig.ignoreWarnings = [ + /Failed to parse source map/, + /Critical dependency: the request of a dependency is an expression/, + ] // MiniCssExtractPlugin - Ignore order as otherwise conflicting order warning is raised const miniCssExtractPlugin = webpackConfig.plugins.find(p => p.constructor.name === 'MiniCssExtractPlugin')