Skip to content

Commit 1ceecd4

Browse files
csr632youluna
authored andcommitted
fix(ConfigProvider): fix moment import
1 parent c2bcad6 commit 1ceecd4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/config-provider/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const setMomentLocale = locale => {
2323
let moment;
2424
try {
2525
moment = require('moment');
26+
if (moment.default && moment.default.isMoment) moment = moment.default;
2627
} catch (e) {
2728
// ignore
2829
}

0 commit comments

Comments
 (0)