Deno supports .
You can use import maps with the CLI flag.
Current limitations:
- single import map.
- no fallback URLs.
- supports only
file:
, andhttps:
schemes.
Example:
import_map.json
`
color.ts
`
import { red } from "fmt/colors.ts";
`
Then:
`
`
`
// import_map.json
{ "imports": { "/": "./" }}
`
`
`
You may map a different directory: (eg. src)
`
{ "imports": { "/": "./src/" }}