fix:去掉v-memo和编译警告问题

This commit is contained in:
qiuchengw
2025-11-12 10:41:15 +08:00
parent 8d223b85a3
commit 7b8c611597
2 changed files with 2 additions and 20 deletions

View File

@@ -27,6 +27,8 @@ export default defineConfig({
// 确保外部化处理那些你不想打包进库的依赖
external: ['vue'],
output: {
// 使用命名导出,避免默认导出警告
exports: 'named',
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
globals: {
vue: 'Vue',