pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

如何用dayjs替换momentjs

Open superlbr opened this issue 4 years ago • 4 comments
trafficstars

rt

superlbr avatar Jul 09 '21 04:07 superlbr

chainWebpack(memo) { // 使用day.js替换moment.js memo.plugin('AntdDayjsWebpackPlugin').use(AntdDayjsWebpackPlugin); },

Shenlu1 avatar Jul 09 '21 06:07 Shenlu1

umi 开mfsu会报错

superlbr avatar Jul 09 '21 06:07 superlbr

i have same problem after enabling msfu:

Uncaught TypeError: moment__WEBPACK_IMPORTED_MODULE_0___default(...).isMoment is not a function

is there any way to implement a fix?

3hson avatar Jul 25 '21 06:07 3hson

同问,期望能够使用dayjs替换moment

JoyceLizhuo avatar Aug 11 '22 08:08 JoyceLizhuo

2.0 版本默认使用了 dayjs 已经可以开始了

chenshuai2144 avatar Oct 31 '22 15:10 chenshuai2144