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
22.DS_Store
33dist
44.idea
5+ .unimport-components.json
56components.d.ts
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const config: UserConfig = {
88 Components ( {
99 transformer : 'vue2' ,
1010 dts : 'src/components.d.ts' ,
11+ dumpUnimportComponents : true ,
1112 } ) ,
1213 ] ,
1314 build : {
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ const config: UserConfig = {
3737 componentPrefix : 'i' ,
3838 } ) ,
3939 ] ,
40+ dumpUnimportComponents : true ,
4041 } ) ,
4142 ] ,
4243 build : {
Original file line number Diff line number Diff line change @@ -198,6 +198,16 @@ export interface Options {
198198 * Vue version of project. It will detect automatically if not specified.
199199 */
200200 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
201211}
202212
203213export type ResolvedOptions = Omit <
You can’t perform that action at this time.
0 commit comments