We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a5fe0f commit e254da8Copy full SHA for e254da8
src/context.ts
@@ -86,18 +86,18 @@ export class Context {
86
}
87
88
findComponent(name: string, excludePaths: string[] = []) {
89
+ // resolve from fs
90
+ const info = this._componentNameMap[name]
91
+ if (info && !excludePaths.includes(info.path) && !excludePaths.includes(info.path.slice(1)))
92
+ return info
93
+
94
// custom resolvers
95
for (const resolver of this._resolvers) {
96
const path = resolver(name)
97
if (path)
98
return { name, path }
99
100
- // resolve from fs
- const info = this._componentNameMap[name]
- if (info && !excludePaths.includes(info.path) && !excludePaths.includes(info.path.slice(1)))
- return info
-
101
return undefined
102
103
0 commit comments