chore: version preact explicitly in import map (#258)

This allows users to control the `preact` version independently of fresh
itself.
This commit is contained in:
Luca Casonato
2022-06-20 12:37:24 +02:00
committed by GitHub
parent 3e001fe242
commit cbbf616a74
55 changed files with 108 additions and 125 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
/** @jsx h */
import { h, IS_BROWSER, useState } from "$fresh/runtime.ts";
import { h } from "preact";
import { useState } from "preact/hooks";
import { IS_BROWSER } from "$fresh/runtime.ts";
import { tw } from "../utils/twind.ts";
import { RoundedButton } from "../components/Button.tsx";
import { IconMinus, IconPlus } from "../components/Icons.tsx";
+2 -1
View File
@@ -1,6 +1,7 @@
/** @jsx h */
/** @jsxFrag Fragment */
import { Fragment, h, useEffect, useRef, useState } from "$fresh/runtime.ts";
import { Fragment, h } from "preact";
import { useEffect, useRef, useState } from "preact/hooks";
import { tw } from "../utils/twind.ts";
import { Spring, WaveTank } from "../components/WaveTank.ts";