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:
@@ -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";
|
||||
|
||||
|
||||
@@ -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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user