Skip to content

Commit

Permalink
fix: don't use approximate matching for file uris in browsers (#1889)
Browse files Browse the repository at this point in the history
This was causing issues in WASM debugging where files are included from compilation that may not exist on disk. File URIs are absolute, so don't try to use approximate matching even if the absolute path doesn't exist; it's never going to be right.
  • Loading branch information
connor4312 authored Nov 26, 2023
1 parent 14755d4 commit 6d44bd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/targets/browser/browserPathResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ export class BrowserSourcePathResolver extends SourcePathResolverBase<IOptions>
if (await this.fsUtils.exists(net)) {
return net;
}

return abs;
}

let pathname: string;
Expand Down

0 comments on commit 6d44bd0

Please sign in to comment.