Skip to content

Commit

Permalink
Update packages/plugins/src/antd.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Sakina <[email protected]>
  • Loading branch information
sorrycc and fz6m authored Jul 4, 2024
1 parent afaf371 commit 67975a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugins/src/antd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export default (api: IApi) => {
api.chainWebpack((memo) => {
if (api.config.antd.momentPicker) {
if (day2MomentAvailable) {
memo.plugin('antd-moment-webpack-plugin').use(new AntdMomentWebpackPlugin({ disableDayjsAlias: true }));
memo.plugin('antd-moment-webpack-plugin').use(AntdMomentWebpackPlugin, [{ disableDayjsAlias: true }]);
} else {
api.logger.warn(
`MomentPicker is only available in version 5.0.0 and above, but you are using version ${antdVersion}`,
Expand Down

0 comments on commit 67975a3

Please sign in to comment.