From 7c94447835763214d0498a9de8d1b59d71d6f79e Mon Sep 17 00:00:00 2001 From: s3xysteak Date: Thu, 28 Nov 2024 17:19:34 +0800 Subject: [PATCH] docs: improve readme --- README.md | 2 +- README.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d96d97..81c67bc 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ export default defineConfig({ Then you can import on demand through ESM. > [!TIP] -> You can improve the behavior of cache in production environments by vite option `build.rollupOptions.output.manualChunks`. +> When `iife: false`, you can improve the behavior of cache in production environments by vite option `build.rollupOptions.output.manualChunks`. > > For example `cesium: ['cesium']`. diff --git a/README.zh-CN.md b/README.zh-CN.md index d9fb57d..cc9f1af 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -78,7 +78,7 @@ export default defineConfig({ 这样就可以通过 ESM 来按需引入。 > [!TIP] -> 你可以通过 vite选项 `build.rollupOptions.output.manualChunks` 以改进生产环境下的缓存表现。 +> 当 `iife: false` 时,你可以通过 vite选项 `build.rollupOptions.output.manualChunks` 以改进生产环境下的缓存表现。 > > 如 `cesium: ['cesium']`。