Skip to content

Commit

Permalink
fix: winpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed Sep 13, 2024
1 parent 8b39619 commit ed51107
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/loaders/post-raw/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { winPath } from '@umijs/utils';
/**
* loader for mako dumi-raw watch-parent
*/
export default function postRawLoader(this: any, raw: string) {
return `
import '${this.resourcePath}?watch=parent';
import '${winPath(this.resourcePath)}?watch=parent';
${raw};
`;
}

0 comments on commit ed51107

Please sign in to comment.