From 0800ad9c03b24b26b9356420cd088ba0e47700dd Mon Sep 17 00:00:00 2001 From: webfansplz Date: Mon, 18 Dec 2023 16:58:07 +0800 Subject: [PATCH] build(client): update chunk size limit --- packages/client/vite.base.config.ts | 2 +- packages/client/vite.config.ts | 2 +- packages/client/vite.lib.config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/client/vite.base.config.ts b/packages/client/vite.base.config.ts index 4a168b45..033e1d4b 100644 --- a/packages/client/vite.base.config.ts +++ b/packages/client/vite.base.config.ts @@ -12,7 +12,7 @@ export default { }, }, build: { - chunkSizeWarningLimit: 2000, + chunkSizeWarningLimit: 5000, }, plugins: [ { diff --git a/packages/client/vite.config.ts b/packages/client/vite.config.ts index 5dcedd1c..80870459 100644 --- a/packages/client/vite.config.ts +++ b/packages/client/vite.config.ts @@ -10,7 +10,7 @@ export default defineConfig(mergeConfig(baseConfig, { name: 'vite-plugin-copy-devtools-client-bundle', apply: 'build', enforce: 'post', - async closeBundle() { + closeBundle() { // copy const clientFile = resolve(__dirname, './dist') fse.copySync( diff --git a/packages/client/vite.lib.config.ts b/packages/client/vite.lib.config.ts index f8a20db2..8d532caf 100644 --- a/packages/client/vite.lib.config.ts +++ b/packages/client/vite.lib.config.ts @@ -39,7 +39,7 @@ export default defineConfig(mergeConfig(baseConfig, { name: 'vite-plugin-copy-devtools-client', apply: 'build', enforce: 'post', - async closeBundle() { + closeBundle() { // copy const clientFile = resolve(__dirname, './dist') fse.copySync(