CI 测试

This commit is contained in:
bunny 2025-05-24 15:05:28 +08:00
parent 79efc8f1fc
commit bc368d57a1
3 changed files with 15 additions and 2 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
optional-depenencies=true

View File

@ -31,7 +31,7 @@ export const buildEnv = (): BuildOptions => {
// 规定触发警告的 chunk 大小, 当某个代码分块的大小超过该限制时Vite 会发出警告
chunkSizeWarningLimit: 2000,
rollupOptions: {
external: ['md-editor-v3', 'echarts'],
external: ['echarts', 'fsevents'],
input: {
// @ts-ignore
index: pathResolve('../index.html', import.meta.url),

View File

@ -95,6 +95,18 @@
"allowedVersions": {
"eslint": "9"
}
},
"packageExtensions": {
"rollup@*": {
"optionalDependencies": {
"fsevents": "*"
}
}
}
}
},
"onlyBuiltDependencies": [
"@parcel/watcher",
"esbuild",
"vue-demi"
]
}