Unverified Commit d8ad0d3c authored by Shu Ding's avatar Shu Ding Committed by GitHub

Fix `modularizeImports` transform of `antd` (#52148)

`antd` should be using `kebabCase`:
https://unpkg.com/browse/antd@5.6.4/es/index.js

This addresses the problem below as I tested locally:

<img width="397" alt="CleanShot 2023-07-03 at 20 45 48@2x"
src="https://github.com/vercel/next.js/assets/3676859/73ae99b9-0f3b-49ef-9675-9f45322b708d">
parent 3a87f000
...@@ -714,7 +714,7 @@ function assignDefaults( ...@@ -714,7 +714,7 @@ function assignDefaults(
transform: 'react-bootstrap/{{member}}', transform: 'react-bootstrap/{{member}}',
}, },
antd: { antd: {
transform: 'antd/es/{{member}}', transform: 'antd/es/{{kebabCase member}}',
}, },
ahooks: { ahooks: {
transform: 'ahooks/es/{{member}}', transform: 'ahooks/es/{{member}}',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment