Skip to content

Commit 8ea5892

Browse files
committed
chore: update
1 parent 5eaf26b commit 8ea5892

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/uni-cli-shared/src/mp/usingComponents.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,13 @@ function createUsingComponents(
222222

223223
const name = parseVueComponentName(filename)
224224

225+
if (
226+
!Object.keys(bindingComponents).find(
227+
(key) => bindingComponents[key].tag === name
228+
)
229+
)
230+
return usingComponents
231+
225232
const componentName = normalizeComponentName(hyphenate(name))
226233

227234
if (!usingComponents[componentName]) {

0 commit comments

Comments
 (0)