File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -326,8 +326,14 @@ Components({
326
326
327
327
// valid file extensions for components.
328
328
extensions: [' vue' ],
329
+
330
+ // Glob patterns to match file names to be detected as components.
331
+ // When specified, the `dirs` and `extensions` options will be ignored.
332
+ globs: [' src/components/*.{vue}' ],
333
+
329
334
// search for subdirectories
330
335
deep: true ,
336
+
331
337
// resolvers for custom components
332
338
resolvers: [],
333
339
@@ -343,6 +349,7 @@ Components({
343
349
// to prevent duplication inside namespaced component name.
344
350
// works when `directoryAsNamespace: true`
345
351
collapseSamePrefixes: false ,
352
+
346
353
// Subdirectory paths for ignoring namespace prefixes.
347
354
// works when `directoryAsNamespace: true`
348
355
globalNamespaces: [],
@@ -365,7 +372,10 @@ Components({
365
372
366
373
// Vue version of project. It will detect automatically if not specified.
367
374
// Acceptable value: 2 | 2.7 | 3
368
- version: 2.7
375
+ version: 2.7 ,
376
+
377
+ // Only provide types of components in library (registered globally)
378
+ types: []
369
379
})
370
380
```
371
381
You can’t perform that action at this time.
0 commit comments