This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/vuepress-plugin-named-chunks/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ declare module 'vuepress-types/types/theme-api' {
20
20
const NamedChunksPlugin : Plugin < NamedChunksPluginOptions > = (
21
21
{
22
22
pageChunkName = ( { key } ) : string => 'page' + key . slice ( 1 ) ,
23
- layoutChunkName = false ,
23
+ layoutChunkName,
24
24
} ,
25
25
context
26
26
) => {
@@ -38,7 +38,7 @@ const NamedChunksPlugin: Plugin<NamedChunksPluginOptions> = (
38
38
async clientDynamicModules ( ) {
39
39
const content = `export default {\n${ context . pages
40
40
. filter ( ( { _filePath } ) => _filePath )
41
- . map ( page => {
41
+ . map ( ( page ) => {
42
42
const key = JSON . stringify ( page . key )
43
43
const filePath = JSON . stringify ( page . _filePath )
44
44
const comment = page . _chunkName
@@ -70,7 +70,7 @@ const NamedChunksPlugin: Plugin<NamedChunksPluginOptions> = (
70
70
async clientDynamicModules ( ) {
71
71
const { layoutComponentMap } = context . themeAPI
72
72
const content = `export default {\n${ Object . keys ( layoutComponentMap )
73
- . map ( name => {
73
+ . map ( ( name ) => {
74
74
const component = layoutComponentMap [ name ]
75
75
const key = JSON . stringify ( name )
76
76
const filePath = JSON . stringify ( component . path )
You can’t perform that action at this time.
0 commit comments