Skip to content

Commit

Permalink
fix: bypass scoped theme package (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonai committed May 23, 2022
1 parent 60361e2 commit 05a9344
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/slidev/node/themes.ts
Expand Up @@ -52,6 +52,8 @@ export function resolveThemeName(name: string) {
// fallback to prompt install
if (officialThemes[name] != null)
return officialThemes[name]
if (name.indexOf('@') === 0 && name.includes('/'))
return name
return `slidev-theme-${name}`
}

Expand Down

0 comments on commit 05a9344

Please sign in to comment.