vite dayjs打包报错的问题

1,346 阅读1分钟

一开始 import * as dayjs from 'dayjs' 本地开发正常运行,打包后进入使用该插件的页面报错

改进:

import dayjs from 'dayjs' 成功解决