perf: 排除依赖,减少打包时间
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
/*
|
||||
* @Author: zhaojinfeng 121016171@qq.com
|
||||
* @Date: 2023-06-19 10:38:07
|
||||
* @LastEditors: peerless_hero peerless_hero@outlook.com
|
||||
* @LastEditTime: 2023-08-30 16:44:17
|
||||
* @LastEditors: zhaojinfeng 121016171@qq.com
|
||||
* @LastEditTime: 2023-09-14 13:13:08
|
||||
* @FilePath: \vue3\bin\build.ts
|
||||
* @Description:
|
||||
*
|
||||
@ -25,7 +25,7 @@ async function buildAComponent(name: string) {
|
||||
fileName: 'index',
|
||||
},
|
||||
rollupOptions: {
|
||||
external: ['vue', 'vue/macros', 'vue-router', '@vueuse/core', /\.sass/, /element-plus/],
|
||||
external: ['vue', 'vue/macros', 'vue-router', '@vueuse/core', /\.sass/, /element-plus/, '@element-plus/icons-vue', '@vue-office/pdf', '@vue-office/docx', '@vue-office/excel'],
|
||||
output: [
|
||||
{
|
||||
dir: `es/${name}`,
|
||||
|
Reference in New Issue
Block a user