File tree Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ node_modules
2
2
.DS_Store
3
3
dist
4
4
.idea
5
+ .unimport-components.json
5
6
components.d.ts
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const config: UserConfig = {
8
8
Components ( {
9
9
transformer : 'vue2' ,
10
10
dts : 'src/components.d.ts' ,
11
+ dumpUnimportComponents : true ,
11
12
} ) ,
12
13
] ,
13
14
build : {
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ const config: UserConfig = {
37
37
componentPrefix : 'i' ,
38
38
} ) ,
39
39
] ,
40
+ dumpUnimportComponents : true ,
40
41
} ) ,
41
42
] ,
42
43
build : {
Original file line number Diff line number Diff line change @@ -198,6 +198,16 @@ export interface Options {
198
198
* Vue version of project. It will detect automatically if not specified.
199
199
*/
200
200
version ?: 2 | 2.7 | 3
201
+
202
+ /**
203
+ * Save unimport components into a JSON file for other tools to consume.
204
+ * Provide a filepath to save the JSON file.
205
+ *
206
+ * When set to `true`, it will save to `./.unimport-components.json`
207
+ *
208
+ * @default false
209
+ */
210
+ dumpUnimportComponents ?: boolean | string
201
211
}
202
212
203
213
export type ResolvedOptions = Omit <
You can’t perform that action at this time.
0 commit comments