Skip to content

Commit 7eed1f4

Browse files
committed
fix($core): cannot load theme with shortcut.
1 parent bd0bdf9 commit 7eed1f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@vuepress/core/lib/node/loadTheme.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ module.exports = function loadTheme (ctx) {
5959
}
6060

6161
function normalizeThemePath (resolved) {
62-
const { entry, name, fromDep } = resolved
62+
const { entry, fromDep } = resolved
6363
if (fromDep) {
64-
return parse(require.resolve(name)).dir
64+
return parse(require.resolve(entry)).dir
6565
} else if (entry.endsWith('.js') || entry.endsWith('.vue')) {
6666
return parse(entry).dir
6767
} else {

0 commit comments

Comments
 (0)