Skip to content

Commit

Permalink
use pinned imports for resolveImport
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasstrehle committed Oct 28, 2024
1 parent 9a0de89 commit 1586a9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/providers/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export class HTMLProvider {
// uix:// paths are absolute web paths without a domain -> return absolute path without protocol
if (path instanceof URL && path.protocol == "uix:") return path.pathname + path.search;
// first try to resolve import specifiers
const resolved = compat_import_map && !Path.pathIsURL(path) ? this.import_resolver.resolveImportSpecifier(path.toString(), this.base_path) : path.toString();
const resolved = compat_import_map && !Path.pathIsURL(path) ?
this.app_options.import_map.resolvePinned(this.import_resolver.resolveImportSpecifier(path.toString())) :
path.toString();
// make sure all paths are converted to web paths
if (map_to_web_path) {
return convertToWebPath(resolved);
Expand Down

0 comments on commit 1586a9b

Please sign in to comment.