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
11
11
12
12
export { allComponents } from "./antdv"
13
13
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
-
27
14
export const defaults :Options = {
28
- include : defaultInclude ,
29
- exclude : defaultExclude ,
30
15
components : allComponents ,
31
16
icons : allIcons ,
32
17
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
2
2
3
3
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 [ ]
14
8
}
You can’t perform that action at this time.
0 commit comments