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