Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 1, 2024
1 parent 58ec4de commit 67c8d66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/trace/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,7 @@ export class Resolver {
const subpath = "./" + url.slice(pkgUrl.length);
if (subpath in pcfg.browser) {
const target = pcfg.browser[subpath];
if (target === false)
throw new Error(
`TODO: Empty browser map for ${subpath} in ${url}`
);
if (target === false) return 'node:@empty';
if (!target.startsWith("./"))
throw new Error(
`TODO: External browser map for ${subpath} to ${target} in ${url}`
Expand Down

0 comments on commit 67c8d66

Please sign in to comment.