Skip to content

Commit

Permalink
docs(lib-mode): add a caveat to the build.minify docs for 'es' format (
Browse files Browse the repository at this point in the history
  • Loading branch information
seanwatters committed Dec 30, 2021
1 parent 6dd7d1a commit 0f393a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/config/index.md
Expand Up @@ -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`
Expand Down

0 comments on commit 0f393a1

Please sign in to comment.