From 5d282a509e02b6d0ded4510e09870e37e4d25cf5 Mon Sep 17 00:00:00 2001 From: sugar Date: Thu, 7 Nov 2024 13:45:00 +0800 Subject: [PATCH] chore: chunkSizeWarningLimit 2048 --- packages/theme/CHANGELOG.md | 3 ++- packages/theme/docs/changelog.md | 3 ++- packages/theme/src/node.ts | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/theme/CHANGELOG.md b/packages/theme/CHANGELOG.md index a75d0d21..1a4c79bd 100644 --- a/packages/theme/CHANGELOG.md +++ b/packages/theme/CHANGELOG.md @@ -4,8 +4,9 @@ ### Patch Changes -- chore: update dependencies - fix: sass warn - [legacy-js-api](https://sass-lang.com/documentation/breaking-changes/legacy-js-api/) +- chore: update dependencies +- chore: chunkSizeWarningLimit 2048 ## 0.5.1 diff --git a/packages/theme/docs/changelog.md b/packages/theme/docs/changelog.md index 60e1e880..d186ff6c 100644 --- a/packages/theme/docs/changelog.md +++ b/packages/theme/docs/changelog.md @@ -31,8 +31,9 @@ bun install vitepress@latest ### Patch Changes -- chore: update dependencies - fix: sass warn - [legacy-js-api](https://sass-lang.com/documentation/breaking-changes/legacy-js-api/) +- chore: update dependencies +- chore: chunkSizeWarningLimit 2048 ## 0.5.1 (2024/10/21) diff --git a/packages/theme/src/node.ts b/packages/theme/src/node.ts index 6c4e45f1..52fde213 100644 --- a/packages/theme/src/node.ts +++ b/packages/theme/src/node.ts @@ -32,6 +32,10 @@ export function getThemeConfig(cfg: Partial = {}) { }, }, }, + build: { + // https://vite.dev/config/build-options.html#build-chunksizewarninglimit + chunkSizeWarningLimit: 2048 + } }, }