File tree Expand file tree Collapse file tree 4 files changed +22
-16
lines changed Expand file tree Collapse file tree 4 files changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -1782,7 +1782,8 @@ export interface OptimizationSplitChunksOptions {
1782
1782
*/
1783
1783
chunks ?:
1784
1784
| ( "initial" | "async" | "all" )
1785
- | ( ( chunk : import ( "../lib/Chunk" ) ) => boolean ) | RegExp ;
1785
+ | RegExp
1786
+ | ( ( chunk : import ( "../lib/Chunk" ) ) => boolean ) ;
1786
1787
/**
1787
1788
* Sets the size types which are used when a number is used for sizes.
1788
1789
*/
@@ -1804,7 +1805,8 @@ export interface OptimizationSplitChunksOptions {
1804
1805
*/
1805
1806
chunks ?:
1806
1807
| ( "initial" | "async" | "all" )
1807
- | ( ( chunk : import ( "../lib/Chunk" ) ) => boolean ) | RegExp ;
1808
+ | RegExp
1809
+ | ( ( chunk : import ( "../lib/Chunk" ) ) => boolean ) ;
1808
1810
/**
1809
1811
* Maximal size hint for the on-demand chunks.
1810
1812
*/
@@ -1897,7 +1899,8 @@ export interface OptimizationSplitChunksCacheGroup {
1897
1899
*/
1898
1900
chunks ?:
1899
1901
| ( "initial" | "async" | "all" )
1900
- | ( ( chunk : import ( "../lib/Chunk" ) ) => boolean ) | RegExp ;
1902
+ | RegExp
1903
+ | ( ( chunk : import ( "../lib/Chunk" ) ) => boolean ) ;
1901
1904
/**
1902
1905
* Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group.
1903
1906
*/
Original file line number Diff line number Diff line change 2626
2626
"enum" : [" initial" , " async" , " all" ]
2627
2627
},
2628
2628
{
2629
- "instanceof" : " Function " ,
2630
- "tsType" : " ((chunk: import('../lib/Chunk')) => boolean) "
2629
+ "instanceof" : " RegExp " ,
2630
+ "tsType" : " RegExp "
2631
2631
},
2632
2632
{
2633
- "instanceof" : " RegExp"
2633
+ "instanceof" : " Function" ,
2634
+ "tsType" : " ((chunk: import('../lib/Chunk')) => boolean)"
2634
2635
}
2635
2636
]
2636
2637
},
2876
2877
"enum" : [" initial" , " async" , " all" ]
2877
2878
},
2878
2879
{
2879
- "instanceof" : " Function " ,
2880
- "tsType" : " ((chunk: import('../lib/Chunk')) => boolean) "
2880
+ "instanceof" : " RegExp " ,
2881
+ "tsType" : " RegExp "
2881
2882
},
2882
2883
{
2883
- "instanceof" : " RegExp"
2884
+ "instanceof" : " Function" ,
2885
+ "tsType" : " ((chunk: import('../lib/Chunk')) => boolean)"
2884
2886
}
2885
2887
]
2886
2888
},
2918
2920
"enum" : [" initial" , " async" , " all" ]
2919
2921
},
2920
2922
{
2921
- "instanceof" : " Function " ,
2922
- "tsType" : " ((chunk: import('../lib/Chunk')) => boolean) "
2923
+ "instanceof" : " RegExp " ,
2924
+ "tsType" : " RegExp "
2923
2925
},
2924
2926
{
2925
- "instanceof" : " RegExp"
2927
+ "instanceof" : " Function" ,
2928
+ "tsType" : " ((chunk: import('../lib/Chunk')) => boolean)"
2926
2929
}
2927
2930
]
2928
2931
},
Original file line number Diff line number Diff line change @@ -8691,7 +8691,7 @@ declare interface OptimizationSplitChunksCacheGroup {
8691
8691
/**
8692
8692
* Select chunks for determining cache group content (defaults to "initial", "initial" and "all" requires adding these chunks to the HTML).
8693
8693
*/
8694
- chunks ?: "all" | "initial" | "async" | ( ( chunk : Chunk ) => boolean ) | RegExp ;
8694
+ chunks ?: RegExp | "all" | "initial" | "async" | ( ( chunk : Chunk ) => boolean ) ;
8695
8695
8696
8696
/**
8697
8697
* Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group.
@@ -8818,7 +8818,7 @@ declare interface OptimizationSplitChunksOptions {
8818
8818
/**
8819
8819
* Select chunks for determining shared modules (defaults to "async", "initial" and "all" requires adding these chunks to the HTML).
8820
8820
*/
8821
- chunks ?: "all" | "initial" | "async" | ( ( chunk : Chunk ) => boolean ) | RegExp ;
8821
+ chunks ?: RegExp | "all" | "initial" | "async" | ( ( chunk : Chunk ) => boolean ) ;
8822
8822
8823
8823
/**
8824
8824
* Sets the size types which are used when a number is used for sizes.
@@ -8841,7 +8841,7 @@ declare interface OptimizationSplitChunksOptions {
8841
8841
/**
8842
8842
* Select chunks for determining shared modules (defaults to "async", "initial" and "all" requires adding these chunks to the HTML).
8843
8843
*/
8844
- chunks ?: "all" | "initial" | "async" | ( ( chunk : Chunk ) => boolean ) ;
8844
+ chunks ?: RegExp | "all" | "initial" | "async" | ( ( chunk : Chunk ) => boolean ) ;
8845
8845
/**
8846
8846
* Maximal size hint for the on-demand chunks.
8847
8847
*/
You can’t perform that action at this time.
0 commit comments