This where import_maps deno.land/manual/linking_to_extern... comes to rescue!
import_maps
Its simple as create a import.json (ex)
{ "imports": { "alosaur/": "https://deno.land/x/alosaur/" } }
and import like this in .ts
.ts
import { App } from "alosaur/mod.ts";
and pass the imports.json with --unstable flag when you run deno.
--unstable
Take look at this example github.com/alosaur/alosaur-schematics
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This where
import_maps
deno.land/manual/linking_to_extern... comes to rescue!Its simple as create a import.json (ex)
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