docs: improve optimizeDeps.esbuildOptions type (#14063)

This commit is contained in:
chenfan 2024-02-12 17:06:01 +08:00 committed by GitHub
parent ea091853e0
commit 4caeb8491a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,18 @@ export default defineConfig({
## optimizeDeps.esbuildOptions
- **Type:** [`EsbuildBuildOptions`](https://esbuild.github.io/api/#simple-options)
- **Type:** [`Omit`](https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys)`<`[`EsbuildBuildOptions`](https://esbuild.github.io/api/#simple-options)`,
| 'bundle'
| 'entryPoints'
| 'external'
| 'write'
| 'watch'
| 'outdir'
| 'outfile'
| 'outbase'
| 'outExtension'
| 'metafile'>`
Options to pass to esbuild during the dep scanning and optimization.