From 0f393a1ac7efe01736ec0c5ebd55e9ca7213fd36 Mon Sep 17 00:00:00 2001 From: Sean Watters Date: Wed, 29 Dec 2021 23:10:32 -0700 Subject: [PATCH] docs(lib-mode): add a caveat to the build.minify docs for 'es' format (#6314) --- docs/config/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/config/index.md b/docs/config/index.md index 09b5ee1171b03d..b7cba23e2bce5f 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -787,6 +787,8 @@ export default defineConfig({ Set to `false` to disable minification, or specify the minifier to use. The default is [Esbuild](https://github.com/evanw/esbuild) which is 20 ~ 40x faster than terser and only 1 ~ 2% worse compression. [Benchmarks](https://github.com/privatenumber/minification-benchmarks) + Note the `build.minify` option is not available when using the `'es'` format in lib mode. + ### build.terserOptions - **Type:** `TerserOptions`