From bf34a74736730f3fae22362c68eefe5a4b00d6cd Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Mon, 19 Sep 2022 15:27:16 +0200 Subject: [PATCH] Incldue styled-jsx in swc compiling --- packages/next/build/webpack-config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/next/build/webpack-config.ts b/packages/next/build/webpack-config.ts index 2fb05f53c014..73af6d064260 100644 --- a/packages/next/build/webpack-config.ts +++ b/packages/next/build/webpack-config.ts @@ -693,6 +693,7 @@ export default async function getBaseWebpackConfig( /next[\\/]dist[\\/]client/, /next[\\/]dist[\\/]pages/, /[\\/](strip-ansi|ansi-regex)[\\/]/, + /styled-jsx[\\/]/, ] // Support for NODE_PATH