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,6 +1,7 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { h, tw } from "../deps.client.ts";
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
import { tw } from "../utils/twind.ts";
|
||||
|
||||
export function RoundedButton(props: h.JSX.HTMLAttributes<HTMLButtonElement>) {
|
||||
return (
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { apply, h, tw } from "../deps.client.ts";
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
import { apply, tw } from "../utils/twind.ts";
|
||||
|
||||
import {
|
||||
CATEGORIES,
|
||||
TableOfContentsCategory,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { h, tw } from "../deps.client.ts";
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
import { tw } from "../utils/twind.ts";
|
||||
|
||||
const LINKS = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { h, tw } from "../deps.client.ts";
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
import { tw } from "../utils/twind.ts";
|
||||
|
||||
export function IconMinus() {
|
||||
return (
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { h, tw } from "../deps.client.ts";
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
import { tw } from "../utils/twind.ts";
|
||||
|
||||
export default function NavigationBar(props: { active: string }) {
|
||||
const items = [
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { h, tw } from "../deps.client.ts";
|
||||
import { h } from "$fresh/runtime.ts";
|
||||
import { tw } from "../utils/twind.ts";
|
||||
|
||||
export default function WarningBanner() {
|
||||
const warning = tw`bg-yellow-100 border(1 yellow-200) p-4 mb-4`;
|
||||
|
||||
Reference in New Issue
Block a user