Skip to content

Commit

Permalink
fix: import antd from es in modularizeImports (#57968)
Browse files Browse the repository at this point in the history
### Fixing a bug

Currently any imports from antd will be replaced with `lib`, which will cause context not the same.

Ref: ant-design/ant-design#45567
  • Loading branch information
MadCcc authored Nov 13, 2023
1 parent a01beaf commit 2e82ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ function assignDefaults(
},
},
antd: {
transform: 'antd/lib/{{kebabCase member}}',
transform: 'antd/es/{{kebabCase member}}',
},
ahooks: {
transform: {
Expand Down

0 comments on commit 2e82ca8

Please sign in to comment.