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:
Michael Smith
2018-10-14 10:53:50 -05:00
committed by ULIVZ
parent 6d408ffca8
commit c95c09fbf6
@@ -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 = [