File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
packages/uni-cli-shared/src/mp Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -222,16 +222,12 @@ function createUsingComponents(
222
222
223
223
const name = parseVueComponentName ( filename )
224
224
225
- if ( bindingComponents [ name ] ) {
226
- const componentName = normalizeComponentName (
227
- hyphenate ( bindingComponents [ name ] . tag )
228
- )
225
+ const componentName = normalizeComponentName ( hyphenate ( name ) )
229
226
230
- if ( ! usingComponents [ componentName ] ) {
231
- usingComponents [ componentName ] = addLeadingSlash (
232
- removeExt ( normalizeMiniProgramFilename ( filename , inputDir ) )
233
- )
234
- }
227
+ if ( ! usingComponents [ componentName ] ) {
228
+ usingComponents [ componentName ] = addLeadingSlash (
229
+ removeExt ( normalizeMiniProgramFilename ( filename , inputDir ) )
230
+ )
235
231
}
236
232
237
233
return usingComponents
You can’t perform that action at this time.
0 commit comments