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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy