bianpengfei

Results 4 comments of bianpengfei

这个问题在我们 monorepo 项目下,我们调整了vue-loader, 这里版本号 "vue-loader": "17.2.2", 底层代码调整如下: ### 1、第一步 调整源码:node_modules/vue-loader/dist/hotReload.js ``` js 'use strict' // __VUE_HMR_RUNTIME__ is injected to global scope by @vue/runtime-core Object.defineProperty(exports, '__esModule', { value: true }) exports.genHotReloadCode...

在项目的根路径下创建 global.d.ts文件 ```js declare module 'vue' { export interface GlobalComponents { WdActionSheet: (typeof import('wot-design-uni/components/wd-action-sheet/wd-action-sheet.vue'))['default'] WdBadge: (typeof import('wot-design-uni/components/wd-badge/wd-badge.vue'))['default'] WdButton: (typeof import('wot-design-uni/components/wd-button/wd-button.vue'))['default'] WdCalendar: (typeof import('wot-design-uni/components/wd-calendar/wd-calendar.vue'))['default'] WdCalendarView: (typeof import('wot-design-uni/components/wd-calendar-view/wd-calendar-view.vue'))['default'] WdCard: (typeof import('wot-design-uni/components/wd-card/wd-card.vue'))['default'] WdCell:...