Skip to content

Commit

Permalink
import maps work
Browse files Browse the repository at this point in the history
  • Loading branch information
satyarohith committed Jun 2, 2022
1 parent ef1fe54 commit a2c1fa5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"importMap": "./import_map.json"
}
5 changes: 5 additions & 0 deletions import_map.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"imports": {
"std/": "https://deno.land/[email protected]/"
}
}
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { serve } from "https://deno.land/std@0.140.0/http/server.ts";
import { serve } from "std/http/server.ts";

serve((req: Request) => new Response("Hello World"));
serve((req: Request) => new Response("Import maps work!"));

0 comments on commit a2c1fa5

Please sign in to comment.