Deno supports .

    You can use import maps with the CLI flag.

    Current limitations:

    • single import map.
    • no fallback URLs.
    • supports only file:, and https: schemes.

    Example:

    import_map.json

    `

    color.ts

    `

    1. import { red } from "fmt/colors.ts";

    `

    Then:

    `

    `

    `

    1. // import_map.json
    2. { "imports": { "/": "./" }}

    `

    `

    `

    You may map a different directory: (eg. src)

    `

    1. { "imports": { "/": "./src/" }}