|
export interface Options { |
|
include?: string; |
|
exclude?: string; |
|
tsConfig?: string; |
|
transformers?: ts.CustomTransformers; |
|
compilerOptions?: ts.CompilerOptions; |
|
export function deepkitType(options: Options = {}) { |
|
const filter = createFilter(options.include ?? ['**/*.tsx', '**/*.ts'], options.exclude ?? 'node_modules/**'); |
include should match the type of first arg of createFilter which is according to rollup d.ts a FilterPattern (not just string)
export type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
deepkit/packages/vite/src/plugin.ts
Lines 6 to 11 in 0336f66
deepkit/packages/vite/src/plugin.ts
Lines 14 to 15 in 0336f66
include should match the type of first arg of
createFilterwhich is according to rollup d.ts a FilterPattern (not just string)export type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;