From 871cb97267fb7d534db0f492b6b6285b5949f801 Mon Sep 17 00:00:00 2001 From: peerless_hero Date: Wed, 30 Aug 2023 16:47:25 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=BF=BD=E7=95=A5vue/macros=E7=AD=89?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=EF=BC=9B=E5=88=A0=E9=99=A4lib=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E7=9A=84=E6=97=A0=E6=95=88=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/build.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/build.ts b/bin/build.ts index a001040..bb7bbff 100644 --- a/bin/build.ts +++ b/bin/build.ts @@ -2,7 +2,7 @@ * @Author: zhaojinfeng 121016171@qq.com * @Date: 2023-06-19 10:38:07 * @LastEditors: peerless_hero peerless_hero@outlook.com - * @LastEditTime: 2023-08-30 15:34:25 + * @LastEditTime: 2023-08-30 16:44:17 * @FilePath: \vue3\bin\build.ts * @Description: * @@ -25,7 +25,7 @@ async function buildAComponent(name: string) { fileName: 'index', }, rollupOptions: { - external: ['vue', '@vueuse/core', /\.sass/, /element-plus/], + external: ['vue', 'vue/macros', 'vue-router', '@vueuse/core', /\.sass/, /element-plus/], output: [ { dir: `es/${name}`, @@ -43,7 +43,7 @@ async function buildAComponent(name: string) { }, plugins: [Unocss()], }) - await Promise.all([remove(`es/${name}/index2.mjs`), remove(`es/${name}/unocss.mjs`), remove(`lib/${name}/index2.mjs`), remove(`lib/${name}/unocss.mjs`)]) + await Promise.all([remove(`es/${name}/index2.mjs`), remove(`es/${name}/unocss.mjs`), remove(`lib/${name}/unocss.js`)]) consola.success(`${name}构建成功!`) }