Skip to content

Commit 5037cb2

Browse files
committed
docs: note about globs option
1 parent 5efcd99 commit 5037cb2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/core/options.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ export function resolveOptions(options: Options, root: string): ResolvedOptions
3030

3131
if (resolved.globs) {
3232
resolved.globs = toArray(resolved.globs).map((glob: string) => slash(resolve(root, glob)))
33-
} else {
33+
}
34+
else {
3435
const extsGlob = resolved.extensions.length === 1
3536
? resolved.extensions
3637
: `{${resolved.extensions.join(',')}}`
37-
38+
3839
resolved.dirs = toArray(resolved.dirs)
3940
resolved.resolvedDirs = resolved.dirs.map(i => slash(resolve(root, i)))
4041

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ export interface Options {
5555

5656
/**
5757
* Glob patterns to match file names to be detected as components.
58+
*
59+
* When specified, the `dirs` and `extensions` options will be ignored.
5860
*/
5961
globs?: string | string[]
6062

0 commit comments

Comments
 (0)