Skip to content

Commit ea53e70

Browse files
authored
fix(types): improve ESBuildOptions.include / exclude type to allow readonly (string | RegExp)[] (#19146)
1 parent 71506f0 commit ea53e70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vite/src/node/plugins/esbuild.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export const defaultEsbuildSupported = {
4343
}
4444

4545
export interface ESBuildOptions extends TransformOptions {
46-
include?: string | RegExp | string[] | RegExp[]
47-
exclude?: string | RegExp | string[] | RegExp[]
46+
include?: string | RegExp | ReadonlyArray<string | RegExp>
47+
exclude?: string | RegExp | ReadonlyArray<string | RegExp>
4848
jsxInject?: string
4949
/**
5050
* This option is not respected. Use `build.minify` instead.

0 commit comments

Comments
 (0)