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:
@@ -1,6 +1,5 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
import { h } from "preact";
|
||||
import { tw } from "../utils/twind.ts";
|
||||
|
||||
export function RoundedButton(props: h.JSX.HTMLAttributes<HTMLButtonElement>) {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
import { h } from "preact";
|
||||
import { apply, tw } from "../utils/twind.ts";
|
||||
|
||||
import {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
import { h } from "preact";
|
||||
import { tw } from "../utils/twind.ts";
|
||||
|
||||
const LINKS = [
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
import { h } from "preact";
|
||||
import { tw } from "../utils/twind.ts";
|
||||
|
||||
export function IconMinus() {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
import { h } from "preact";
|
||||
import { tw } from "../utils/twind.ts";
|
||||
|
||||
export default function NavigationBar(props: { active: string }) {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
import { h } from "preact";
|
||||
import { tw } from "../utils/twind.ts";
|
||||
|
||||
export default function WarningBanner() {
|
||||
|
||||
Reference in New Issue
Block a user