From 8ea589248ded4138b0e9d054013ebfc0fd5cbf28 Mon Sep 17 00:00:00 2001 From: acyza <101238421+acyza@users.noreply.github.com> Date: Sun, 19 May 2024 23:49:54 +0800 Subject: [PATCH] chore: update --- packages/uni-cli-shared/src/mp/usingComponents.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/uni-cli-shared/src/mp/usingComponents.ts b/packages/uni-cli-shared/src/mp/usingComponents.ts index 068318059eb..fce2d792a19 100644 --- a/packages/uni-cli-shared/src/mp/usingComponents.ts +++ b/packages/uni-cli-shared/src/mp/usingComponents.ts @@ -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]) {