From 4da19a564e08784d1dcdc52444b02a40269ea40e Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Mon, 20 Jul 2020 15:08:36 +0200 Subject: [PATCH] Update packages/next/build/webpack-config.ts Co-authored-by: Joe Haddad --- packages/next/build/webpack-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/build/webpack-config.ts b/packages/next/build/webpack-config.ts index 339efd7b4421d..84cfea8863d7b 100644 --- a/packages/next/build/webpack-config.ts +++ b/packages/next/build/webpack-config.ts @@ -945,7 +945,7 @@ export default async function getBaseWebpackConfig( tracer, }), !isWebpack5 && - !config.experimental.modern && + config.experimental.modern && !isServer && !dev && (() => {