build: 组件打包时排除@vueuse/core、element-plus

This commit is contained in:
peerless_hero
2023-08-30 15:42:47 +08:00
parent 9de80da9e4
commit 82c9337a6d
4 changed files with 8 additions and 22 deletions

View File

@ -1,8 +1,8 @@
/*
* @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-06-19 10:38:07
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-07-21 14:47:27
* @LastEditors: peerless_hero peerless_hero@outlook.com
* @LastEditTime: 2023-08-30 15:34:25
* @FilePath: \vue3\bin\build.ts
* @Description:
*
@ -25,6 +25,7 @@ async function buildAComponent(name: string) {
fileName: 'index',
},
rollupOptions: {
external: ['vue', '@vueuse/core', /\.sass/, /element-plus/],
output: [
{
dir: `es/${name}`,