feat: use import maps instead of deps files (#209)

This commit updates fresh to use import maps instead of deps files in generated projects.
This commit is contained in:
Luca Casonato
2022-05-23 19:35:15 +02:00
committed by GitHub
parent fd1346ed6b
commit 80598d07fd
71 changed files with 188 additions and 141 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ then adds a custom header to the response before returning it:
// routes/about.tsx
/** @jsx h */
import { h, Handlers } from "../deps.client.ts";
import { h, Handlers } from "$fresh/runtime.ts";
export const handler: Handlers = {
GET(req, ctx) {
@@ -58,7 +58,7 @@ response:
```ts
// routes/api/random-uuid.ts
import { Handlers } from "../deps.client.ts";
import { Handlers } from "$fresh/runtime.ts";
export const handler: Handlers = {
GET(req) {