From d660760c701e131f5f693b57c6835f9aa6210ec6 Mon Sep 17 00:00:00 2001 From: "Hung-Han (Henry) Chen" <1474479+chenhunghan@users.noreply.github.com> Date: Thu, 3 Dec 2020 15:49:16 +0800 Subject: [PATCH] Remove warning DeprecationWarning: config.stats.warningsFilter is deprecated in favor of config.ignoreWarnings Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com> --- webpack.renderer.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/webpack.renderer.ts b/webpack.renderer.ts index 755fbe2903..0fa519b22e 100755 --- a/webpack.renderer.ts +++ b/webpack.renderer.ts @@ -44,12 +44,10 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura filename: "[name].js", chunkFilename: "chunks/[name].js", }, - stats: { - warningsFilter: [ - /Critical dependency: the request of a dependency is an expression/, - /export '.*' was not found in/ - ] - }, + ignoreWarnings: [ + /Critical dependency: the request of a dependency is an expression/, + /export '.*' was not found in/ + ], resolve: { extensions: [ ".js", ".jsx", ".json",