File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/docusaurus/lib/server/load Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,22 +72,22 @@ async function loadRoutes(pluginsRouteConfigs) {
72
72
const componentChunk = genImportChunk ( componentPath , 'component' ) ;
73
73
addRoutesChunkNames ( routePath , 'component' , componentChunk ) ;
74
74
75
- function genRouteChunkNames ( value ) {
75
+ function genRouteChunkNames ( value , prefix ) {
76
76
if ( Array . isArray ( value ) ) {
77
77
return value . map ( genRouteChunkNames ) ;
78
78
}
79
79
80
80
if ( _ . isObject ( value ) && ! value . __import ) {
81
81
const newValue = { } ;
82
82
Object . keys ( value ) . forEach ( key => {
83
- newValue [ key ] = genRouteChunkNames ( value [ key ] ) ;
83
+ newValue [ key ] = genRouteChunkNames ( value [ key ] , key ) ;
84
84
} ) ;
85
85
return newValue ;
86
86
}
87
87
88
88
const importChunk = genImportChunk (
89
89
getModulePath ( value ) ,
90
- 'module' ,
90
+ prefix ,
91
91
routePath ,
92
92
) ;
93
93
registry [ importChunk . chunkName ] = {
You can’t perform that action at this time.
0 commit comments