Skip to content

Commit e6b6b7d

Browse files
committed
fix tests
1 parent 4d46327 commit e6b6b7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/targets/browser/blazorSourcePathResolver.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export class BlazorSourcePathResolver extends BrowserSourcePathResolver {
5555
// Blazor files have a file:/// url. Override the default absolutePathToUrlRegexp which returns an http based regexp
5656
const fileUrl = utils.absolutePathToFileUrl(absolutePath);
5757
const fileRegexp = utils.urlToRegex(fileUrl);
58-
return `${fileRegexp}|${super.absolutePathToUrlRegexp(absolutePath)}`;
58+
if (this.options.baseUrl)
59+
return `${fileRegexp}|${super.absolutePathToUrlRegexp(absolutePath)}`;
60+
return fileRegexp;
5961
}
6062

6163
return super.absolutePathToUrlRegexp(absolutePath);

0 commit comments

Comments
 (0)