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}构建成功!`) }