DEV Community

[Comment from a deleted post]
Collapse
 
emjimadhu profile image
Em Ji Madhu

This where import_maps deno.land/manual/linking_to_extern... comes to rescue!

Its simple as create a import.json (ex)

{
  "imports": {
    "alosaur/": "https://deno.land/x/alosaur/"
  }
}

and import like this in .ts

import { App } from "alosaur/mod.ts";

and pass the imports.json with --unstable flag when you run deno.

Take look at this example github.com/alosaur/alosaur-schematics