Skip to content

Commit

Permalink
fix(types): improve ESBuildOptions.include / exclude type to allow …
Browse files Browse the repository at this point in the history
…`readonly (string | RegExp)[]` (vitejs#19146)
  • Loading branch information
btea authored Jan 7, 2025
1 parent 71506f0 commit ea53e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/plugins/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | RegExp>
exclude?: string | RegExp | ReadonlyArray<string | RegExp>
jsxInject?: string
/**
* This option is not respected. Use `build.minify` instead.
Expand Down

0 comments on commit ea53e70

Please sign in to comment.