Skip to content

Commit

Permalink
fix($core): fix extra anonymous plugin message (#926)
Browse files Browse the repository at this point in the history
In the absence of a theme entry file, an extra anonymous plugin load
message would be printed as the themeEntryFile object lacked a name.
  • Loading branch information
spinda authored and ulivz committed Oct 14, 2018
1 parent 6d408ff commit c95c09f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@vuepress/core/lib/prepare/loadTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit c95c09f

Please sign in to comment.