From a6b2460144179151dde52764a752db166ae3aba5 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Fri, 30 Jun 2023 12:49:42 +0200 Subject: [PATCH] Add default modularizeImports for antd / ant-design/icons / ahooks --- packages/next/src/server/config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/next/src/server/config.ts b/packages/next/src/server/config.ts index f9a1e683ed80d..fddb06fb22bca 100644 --- a/packages/next/src/server/config.ts +++ b/packages/next/src/server/config.ts @@ -713,6 +713,15 @@ function assignDefaults( 'react-bootstrap': { transform: 'react-bootstrap/{{member}}', }, + antd: { + transform: 'antd/es/{{member}}', + }, + ahooks: { + transform: 'ahooks/es/{{member}}', + }, + '@ant-design/icons': { + transform: '@ant-design/icons/{{member}}', + }, } return result