Skip to content

Commit

Permalink
refactor(theme): start resolve theme from preset package
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Nov 11, 2020
1 parent 26e0408 commit 3910aed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/preset-dumi/src/theme/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ function detectTheme() {
*/
function getThemeResolvePath(sourcePath: string) {
return getModuleResolvePath({
basePath: ctx.umi.cwd,
// start search theme from @umijs/preset-dumi package
basePath: __dirname,
sourcePath,
silent: true,
// use empty alias to avoid dumi repo start failed
Expand Down

0 comments on commit 3910aed

Please sign in to comment.