diff --git a/client/next.config.js b/client/next.config.js index e0712410755..8a8972e3f39 100644 --- a/client/next.config.js +++ b/client/next.config.js @@ -21,13 +21,17 @@ const nextConfig = { asyncWebAssembly: true, layers: true }; - config.module.rules = config.module.rules.concat([ - { - test: /\.svg$/i, - issuer: /\.[jt]sx?$/, - use: ['@svgr/webpack'] - } - ]); + config.module = { + ...config.module, + rules: config.module.rules.concat([ + { + test: /\.svg$/i, + issuer: /\.[jt]sx?$/, + use: ['@svgr/webpack'] + } + ]), + exprContextCritical: false + }; return config; }