Skip to content

Commit b5e2b76

Browse files
committed
fix: remove node_modules exclude from globsExclude
1 parent 2c63265 commit b5e2b76

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/core/options.ts

-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ export function resolveOptions(options: Options, root: string): ResolvedOptions
6767
throw new Error('[unplugin-vue-components] `extensions` option is required to search for components')
6868
}
6969

70-
if (!resolved.globsExclude)
71-
resolved.globsExclude = [`**/node_modules/**`]
7270
resolved.globsExclude = toArray(resolved.globsExclude || [])
7371
.map(i => resolveGlobsExclude(root, i))
7472

src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export interface Options {
9898
/**
9999
* Negated glob patterns to exclude files from being detected as components.
100100
*
101-
* @default ['<root>/**\/node_modules/**']
101+
* @default []
102102
*/
103103
globsExclude?: string | string[]
104104

0 commit comments

Comments
 (0)