File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/vue-app/template Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 4
4
getMatchedComponentsInstances ,
5
5
getChildrenComponentInstancesUsingFetch ,
6
6
promisify ,
7
- globalHandleError
7
+ globalHandleError ,
8
+ sanitizeComponent
8
9
} from './utils'
9
10
< % } % >
10
11
< % if ( features . layouts && components . ErrorPage ) { % > import NuxtError from '<%= components.ErrorPage %>' < % } % >
@@ -23,7 +24,7 @@ import '<%= relativeToBuild(resolvePath(c.src || c, { isStyle: true })) %>'
23
24
}
24
25
} ) . join ( '\n' ) % >
25
26
26
- const layouts = { < %= Object . keys ( layouts ) . map ( key => `"_${ key } ": _${ hash ( key ) } ` ) . join ( ',' ) % > } < %= isTest ? '// eslint-disable-line' : '' % >
27
+ const layouts = { < %= Object . keys ( layouts ) . map ( key => `"_${ key } ": sanitizeComponent( _${ hash ( key ) } ) ` ) . join ( ',' ) % > } < %= isTest ? '// eslint-disable-line' : '' % >
27
28
28
29
< % if ( splitChunks . layouts ) { % > let resolvedLayouts = { } < % } % >
29
30
< % } % >
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export function sanitizeComponent (Component) {
80
80
Component . _Ctor = Component
81
81
Component . extendOptions = Component . options
82
82
}
83
- // For debugging purpose
83
+ // If no component name defined, set file path as name, (also fixes #5703)
84
84
if ( ! Component . options . name && Component . options . __file ) {
85
85
Component . options . name = Component . options . __file
86
86
}
You can’t perform that action at this time.
0 commit comments