From 65b835cc58edcaa4728b575591766a9f71138665 Mon Sep 17 00:00:00 2001 From: Tadayoshi Sato Date: Tue, 9 Jan 2024 18:10:08 +0900 Subject: [PATCH] build(app): suppress warning while building app --- app/craco.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/craco.config.js b/app/craco.config.js index b64993d3..c38042cb 100644 --- a/app/craco.config.js +++ b/app/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,