File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
packages/uni-cli-shared/src/mp Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -261,14 +261,16 @@ function createUsingComponents(
261
261
} )
262
262
263
263
if ( filename ) {
264
- const componentName = parseVueComponentName ( filename )
264
+ const name = parseVueComponentName ( filename )
265
265
266
266
if (
267
- Object . keys ( bindingComponents ) . find (
268
- ( v ) => bindingComponents [ v ] . tag === componentName
269
- ) &&
270
- ! usingComponents [ componentName ]
271
- ) {
267
+ ! Object . keys ( bindingComponents ) . find (
268
+ ( v ) => bindingComponents [ v ] . tag === name
269
+ )
270
+ )
271
+ return usingComponents
272
+ const componentName = normalizeComponentName ( hyphenate ( name ) )
273
+ if ( ! usingComponents [ componentName ] ) {
272
274
usingComponents [ componentName ] = addLeadingSlash (
273
275
removeExt ( normalizeMiniProgramFilename ( filename , inputDir ) )
274
276
)
You can’t perform that action at this time.
0 commit comments