Thanks for writing this up. Do you know if there a way to define a common host name for imports? From an aesthetic POV, this looks jarring to my eyes.
import { Client } from "https://deno.land/x/mysql/mod.ts";
It would be nice to do this instead
import { Client } from "mysql/mod";
and let some manifest or configuration flag handle the rest.
Yes! Deno supports import_map.json
import_map.json
References: deno.land/manual/linking_to_extern... wicg.github.io/import-maps/
And there's might be a tool to manage this similar to npm in future
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.
Thanks for writing this up. Do you know if there a way to define a common host name for imports? From an aesthetic POV, this looks jarring to my eyes.
It would be nice to do this instead
and let some manifest or configuration flag handle the rest.
Yes! Deno supports
import_map.json
References:
deno.land/manual/linking_to_extern...
wicg.github.io/import-maps/
And there's might be a tool to manage this similar to npm in future