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 @@ -205,6 +205,16 @@ export interface Options {
205
205
* @default true
206
206
*/
207
207
sourcemap ?: boolean
208
+
209
+ /**
210
+ * Save unimport components into a JSON file for other tools to consume.
211
+ * Provide a filepath to save the JSON file.
212
+ *
213
+ * When set to `true`, it will save to `./.unimport-components.json`
214
+ *
215
+ * @default false
216
+ */
217
+ dumpUnimportComponents ?: boolean | string
208
218
}
209
219
210
220
export type ResolvedOptions = Omit <
You can’t perform that action at this time.
0 commit comments