Skip to content

Commit

Permalink
fix(ConfigProvider): fix moment import
Browse files Browse the repository at this point in the history
  • Loading branch information
csr632 authored and youluna committed Jun 3, 2021
1 parent c2bcad6 commit 1ceecd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config-provider/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const setMomentLocale = locale => {
let moment;
try {
moment = require('moment');
if (moment.default && moment.default.isMoment) moment = moment.default;
} catch (e) {
// ignore
}
Expand Down

0 comments on commit 1ceecd4

Please sign in to comment.