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 @@ Here is an example of an island component that counts down to a specific time.
// islands/Countdown.tsx
/** @jsx h */
import { h, useEffect, useMemo, useState } from "../deps.client.ts";
import { h, useEffect, useMemo, useState } from "$fresh/runtime.ts";
const timeFmt = new Intl.RelativeTimeFormat("en-US");
@@ -73,7 +73,7 @@ client with the correct props:
// routes/countdown.tsx
/** @jsx h */
import { h } from "../deps.client.ts";
import { h } from "$fresh/runtime.ts";
import { Countdown } from "../islands/Countdown.tsx";
export default function Page() {