File tree Expand file tree Collapse file tree 2 files changed +5
-26
lines changed Expand file tree Collapse file tree 2 files changed +5
-26
lines changed Original file line number Diff line number Diff line change @@ -11,22 +11,7 @@ export const allIcons = Object.keys(AllIcons).filter(v=>/.*(Outlined|Filled|TwoT
1111
1212export { allComponents } from "./antdv"
1313
14- const defaultInclude : RegExp [ ] = [
15- / \. v u e $ / ,
16- / \. v u e \? v u e / ,
17- / \. v u e \? v = / ,
18- / \. ( ( c | m ) ? j | t ) s x ? $ /
19- ]
20-
21- const defaultExclude : RegExp [ ] = [
22- / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] / ,
23- / [ \\ / ] \. g i t [ \\ / ] / ,
24- / [ \\ / ] \. n u x t [ \\ / ] /
25- ]
26-
2714export const defaults :Options = {
28- include : defaultInclude ,
29- exclude : defaultExclude ,
3015 components : allComponents ,
3116 icons : allIcons ,
3217 imports : allImports
Original file line number Diff line number Diff line change 1- export type PresetImport = string | [ name : string , as ?: string , from ?: string ]
1+ export type PresetImport = string
22
33
4- /** Used to filter files that need to automatically import styles and other functions */
5- export interface TransformOptions {
6- include : RegExp [ ]
7- exclude : RegExp [ ]
8- }
9-
10- export interface Options extends TransformOptions {
11- icons : false | string [ ]
12- components : false | string [ ]
13- imports : string [ ]
4+ export interface Options {
5+ icons : false | PresetImport [ ]
6+ components : false | PresetImport [ ]
7+ imports : PresetImport [ ]
148}
You can’t perform that action at this time.
0 commit comments