Skip to content

Commit

Permalink
fix: watch parent error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed Jun 27, 2024
1 parent d2146a8 commit a19d980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loaders/demo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export default function demoLoader(this: any, raw: string) {
type: 'external',
fileAbsPath: this.resourcePath,
});
code = code + `import '${winPath(this.resourcePath)}?watch=parent';`;
code = `import '${winPath(this.resourcePath)}?watch=parent';${code}`;
return code;
}

0 comments on commit a19d980

Please sign in to comment.