Skip to content

Commit 4c6c1a9

Browse files
committed
chore(core): tweaks
1 parent 2b76463 commit 4c6c1a9

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

packages/@vuepress/core/src/app/appUse.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ export const appUse = <T extends PluginOptions>(
3434
// use plugin
3535
app.pluginApi.plugins.push(plugin)
3636

37-
// TODO: nested plugins with `multiple` may cause potential problems
38-
3937
// if the plugin uses other plugins
4038
if (plugin.plugins) {
4139
plugin.plugins.forEach(app.useByConfig)

packages/@vuepress/core/src/app/createAppSiteData.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ import type { AppOptions, SiteData } from '../types'
55
*
66
* Site data will also be used in client
77
*/
8-
export const createAppSiteData = (options: AppOptions): SiteData => {
9-
return {
10-
base: options.base,
11-
lang: options.lang,
12-
title: options.title,
13-
description: options.description,
14-
head: options.head,
15-
locales: options.locales,
16-
}
17-
}
8+
export const createAppSiteData = (options: AppOptions): SiteData => ({
9+
base: options.base,
10+
lang: options.lang,
11+
title: options.title,
12+
description: options.description,
13+
head: options.head,
14+
locales: options.locales,
15+
})

0 commit comments

Comments
 (0)