build(deps): 更新依赖并添加 .npmrc 配置

This commit is contained in:
严浩
2025-09-09 22:48:04 +08:00
parent 89f2c1e2fb
commit 394294904d
4 changed files with 130 additions and 68 deletions

View File

@@ -30,14 +30,14 @@ export default defineConfig(({ command /* mode */ }) => {
}
})
// const primevuecomponents = await (async () => {
// const { components } = await import('@primevue/metadata')
// return components.map((c) => c.from).filter((c) => c !== undefined)
// })()
const primevuecomponents = await (async () => {
const { components } = await import('@primevue/metadata')
return components.map((c) => c.from).filter((c) => c !== undefined)
})()
function optimizeDeps(): DepOptimizationOptions {
return {
include: [
// ...primevuecomponents,
...primevuecomponents,
'@primeuix/themes',
'@primeuix/themes/lara',
'class-variance-authority',