Skip to content

Commit

Permalink
fix($core): cannot load theme with shortcut.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Jun 3, 2019
1 parent bd0bdf9 commit 7eed1f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@vuepress/core/lib/node/loadTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ module.exports = function loadTheme (ctx) {
}

function normalizeThemePath (resolved) {
const { entry, name, fromDep } = resolved
const { entry, fromDep } = resolved
if (fromDep) {
return parse(require.resolve(name)).dir
return parse(require.resolve(entry)).dir
} else if (entry.endsWith('.js') || entry.endsWith('.vue')) {
return parse(entry).dir
} else {
Expand Down

0 comments on commit 7eed1f4

Please sign in to comment.