From 1c03c94fe1696d564a08620746cdb97a541bc804 Mon Sep 17 00:00:00 2001 From: zhouxinyong Date: Wed, 5 Jan 2022 11:05:37 +0800 Subject: [PATCH] fix: fix umd build (#7) --- package.json | 3 +++ packages/components/builder.config.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index ca5b6db..6ce961f 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,9 @@ "vuepress": "^1.8.2", "vuepress-plugin-typescript": "^0.3.1" }, + "resolutions": { + "vue": "^2.6.14" + }, "repository": { "type": "git", "url": "git+https://github.com/formilyjs/antdv.git" diff --git a/packages/components/builder.config.ts b/packages/components/builder.config.ts index dc7bd55..c0e97b4 100644 --- a/packages/components/builder.config.ts +++ b/packages/components/builder.config.ts @@ -4,4 +4,7 @@ export const BuilderConfig: IBuilderConfig = { targetLibName: 'ant-design-vue', targetLibCjsDir: 'lib', targetLibEsDir: 'es', + externals: { + 'ant-design-vue': 'Antd', + }, }