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 -1
View File
@@ -1,5 +1,6 @@
/** @jsx h */
import { h, IS_BROWSER, tw, useState } from "../deps.client.ts";
import { h, IS_BROWSER, useState } from "$fresh/runtime.ts";
import { tw } from "../utils/twind.ts";
import { RoundedButton } from "../components/Button.tsx";
import { IconMinus, IconPlus } from "../components/Icons.tsx";
+5 -10
View File
@@ -1,12 +1,7 @@
/** @jsx h */
import {
Fragment,
h,
tw,
useEffect,
useRef,
useState,
} from "../deps.client.ts";
/** @jsxFrag Fragment */
import { Fragment, h, useEffect, useRef, useState } from "$fresh/runtime.ts";
import { tw } from "../utils/twind.ts";
import { Spring, WaveTank } from "../components/WaveTank.ts";
function easeInCirc(x: number) {
@@ -99,7 +94,7 @@ function LemonDrop() {
}, []);
return (
<Fragment>
<>
<svg
width="100"
height="300"
@@ -143,7 +138,7 @@ function LemonDrop() {
>
</polygon>
</svg>
</Fragment>
</>
);
}