cdaringeC
Deno13mo ago
cdaringe

How to import relative JSR module from import map

Problem


I expect the following to work, but it does not:

{
  "imports": {
    "@std/path/": "jsr:@std/path/posix/",
  }
}


import { basename } from "@std/path/posix/basename"; // nope!


Discussion


What are others doing in this scenario? Simply not using import maps?
Was this page helpful?