Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
acyza committed May 19, 2024
1 parent 5eaf26b commit 8ea5892
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/uni-cli-shared/src/mp/usingComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,13 @@ function createUsingComponents(

const name = parseVueComponentName(filename)

if (
!Object.keys(bindingComponents).find(
(key) => bindingComponents[key].tag === name
)
)
return usingComponents

const componentName = normalizeComponentName(hyphenate(name))

if (!usingComponents[componentName]) {
Expand Down

0 comments on commit 8ea5892

Please sign in to comment.