diff --git a/packages/vite/src/node/plugins/esbuild.ts b/packages/vite/src/node/plugins/esbuild.ts index 83fa1af4248ab5..a528a21bfe931f 100644 --- a/packages/vite/src/node/plugins/esbuild.ts +++ b/packages/vite/src/node/plugins/esbuild.ts @@ -43,8 +43,8 @@ export const defaultEsbuildSupported = { } export interface ESBuildOptions extends TransformOptions { - include?: string | RegExp | string[] | RegExp[] - exclude?: string | RegExp | string[] | RegExp[] + include?: string | RegExp | ReadonlyArray + exclude?: string | RegExp | ReadonlyArray jsxInject?: string /** * This option is not respected. Use `build.minify` instead.