Deno supports .
You can use import maps with the CLI flag.
- single import map.
- no fallback URLs.
- Deno does not support
std:
namespace. - supports only
file:
,http:
andhttps:
schemes.
Example:
import_map.json
import { red } from "fmt/colors.ts";
Then:
To use starting directory for absolute imports:
// import_map.json
{
"imports": {
"/": "./"
}
// import_map.json
{
"imports": {
"/": "./src/"
}