@@ -21,8 +21,8 @@ export default function ComponentImportPlugin(
21
21
const componentsContent = globSync ( '**/*.vue' , { cwd : join ( runtimeDir , 'components/content' ) } )
22
22
const componentContentNames = new Set ( componentsContent . map ( c => `B24${ c . replace ( / \. v u e $ / , '' ) } ` ) )
23
23
24
- const componentsProse = globSync ( '**/*.vue' , { cwd : join ( runtimeDir , 'components/ prose' ) } )
25
- const componentProseNames = new Set ( componentsProse . map ( c => `B24 ${ c . replace ( / \. v u e $ / , '' ) } ` ) )
24
+ const componentsProse = globSync ( '**/*.vue' , { cwd : join ( runtimeDir , 'prose' ) } )
25
+ const componentProseNames = new Set ( componentsProse . map ( c => `${ c . replace ( / \. v u e $ / , '' ) } ` ) )
26
26
27
27
const overrides = globSync ( '**/*.vue' , { cwd : join ( runtimeDir , 'vue/components' ) } )
28
28
const overrideNames = new Set ( overrides . map ( c => `B24${ c . replace ( / \. v u e $ / , '' ) } ` ) )
@@ -35,7 +35,7 @@ export default function ComponentImportPlugin(
35
35
if ( overrideNames . has ( componentName ) )
36
36
return { name : 'default' , from : join ( runtimeDir , 'vue/components' , `${ componentName . slice ( 'B24' . length ) } .vue` ) }
37
37
if ( componentProseNames . has ( componentName ) )
38
- return { name : 'default' , from : join ( runtimeDir , 'components/ prose' , `${ componentName . slice ( 'B24' . length ) } .vue` ) }
38
+ return { name : 'default' , from : join ( runtimeDir , 'prose' , `${ componentName . slice ( 0 ) } .vue` ) }
39
39
if ( componentContentNames . has ( componentName ) )
40
40
return { name : 'default' , from : join ( runtimeDir , 'components/content' , `${ componentName . slice ( 'B24' . length ) } .vue` ) }
41
41
if ( componentNames . has ( componentName ) )
0 commit comments