Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 6e2b9ba

Browse files
committed
chore(plugin-named-chunks): fix types
1 parent b85e447 commit 6e2b9ba

File tree

1 file changed

+3
-3
lines changed
  • packages/vuepress-plugin-named-chunks/src

1 file changed

+3
-3
lines changed

packages/vuepress-plugin-named-chunks/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ declare module 'vuepress-types/types/theme-api' {
2020
const NamedChunksPlugin: Plugin<NamedChunksPluginOptions> = (
2121
{
2222
pageChunkName = ({ key }): string => 'page' + key.slice(1),
23-
layoutChunkName = false,
23+
layoutChunkName,
2424
},
2525
context
2626
) => {
@@ -38,7 +38,7 @@ const NamedChunksPlugin: Plugin<NamedChunksPluginOptions> = (
3838
async clientDynamicModules() {
3939
const content = `export default {\n${context.pages
4040
.filter(({ _filePath }) => _filePath)
41-
.map(page => {
41+
.map((page) => {
4242
const key = JSON.stringify(page.key)
4343
const filePath = JSON.stringify(page._filePath)
4444
const comment = page._chunkName
@@ -70,7 +70,7 @@ const NamedChunksPlugin: Plugin<NamedChunksPluginOptions> = (
7070
async clientDynamicModules() {
7171
const { layoutComponentMap } = context.themeAPI
7272
const content = `export default {\n${Object.keys(layoutComponentMap)
73-
.map(name => {
73+
.map((name) => {
7474
const component = layoutComponentMap[name]
7575
const key = JSON.stringify(name)
7676
const filePath = JSON.stringify(component.path)

0 commit comments

Comments
 (0)