mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-19 02:05:51 +10:00
fix($core): fix extra anonymous plugin message (#926)
In the absence of a theme entry file, an extra anonymous plugin load message would be printed as the themeEntryFile object lacked a name.
This commit is contained in:
@@ -62,11 +62,11 @@ module.exports = async function loadTheme (ctx) {
|
||||
|
||||
try {
|
||||
themeEntryFile = pluginAPI.normalizePlugin(themePath, ctx.themeConfig)
|
||||
themeEntryFile.name = '@vuepress/internal-theme-entry-file'
|
||||
themeEntryFile.shortcut = null
|
||||
} catch (error) {
|
||||
themeEntryFile = {}
|
||||
}
|
||||
themeEntryFile.name = '@vuepress/internal-theme-entry-file'
|
||||
themeEntryFile.shortcut = null
|
||||
|
||||
// handle theme api
|
||||
const layoutDirs = [
|
||||
|
||||
Reference in New Issue
Block a user