Skip to content

Commit

Permalink
fix: failed to load Rsdoctor package in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
easy1090 committed Sep 23, 2024
1 parent a43ce92 commit e850131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/plugins/rsdoctor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const pluginRsdoctor = (): RsbuildPlugin => ({

let module: RsdoctorExports;
try {
const modulePath = pathToFileURL(packagePath).href;
const modulePath = pathToFileURL(packagePath).pathname;
module = await import(modulePath);
} catch (err) {
logger.error(
Expand Down

0 comments on commit e850131

Please sign in to comment.