Skip to content

Commit

Permalink
fix: resolve path in HBuilderX (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiphin authored May 12, 2024
1 parent 4459a1b commit 79c0661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class PageContext {

for (const [dir, pages] of Object.entries(this.subPagesPath)) {
const basePath = slash(path.join(this.options.root, this.options.outDir))
const root = slash(path.relative(basePath, dir))
const root = slash(path.relative(basePath, path.join(this.options.root, dir)))

const globPackage = subPackages?.find(v => v.root === root)
subPageMaps[root] = await this.parsePages(pages, 'sub', globPackage?.pages)
Expand Down

0 comments on commit 79c0661

Please sign in to comment.