Skip to content

Commit

Permalink
feat(harmony): generate sourceRoot using path.resove
Browse files Browse the repository at this point in the history
  • Loading branch information
baosiqing committed Apr 30, 2024
1 parent ed28151 commit f04b881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-vite-runner/src/utils/compiler/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class CompilerContext <T extends ViteH5BuildConfig | ViteHarmonyBuildConf

protected process () {
this.processConfig()
this.sourceDir = path.join(this.cwd, this.taroConfig.sourceRoot as string)
this.sourceDir = path.resolve(this.cwd, this.taroConfig.sourceRoot as string)
this.frameworkExts = this.taroConfig.frameworkExts || SCRIPT_EXT
}

Expand Down

0 comments on commit f04b881

Please sign in to comment.