Skip to content

Commit

Permalink
fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 7, 2025
1 parent eb81024 commit fe582ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deps/import_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ export function getResolver(
fixImportMap(resolvedImportMap);

return function resolveSpecifier(specifier: string, fromURL?: string) {
const from = fromURL && URL.canParse(fromURL)
? new URL(fromURL)
: importMapBaseURL;
return resolveModuleSpecifier(
specifier,
resolvedImportMap,
importMapBaseURL,
from,
);
};
}
Expand Down

0 comments on commit fe582ab

Please sign in to comment.