From 98e1cee698e90a254a9a2a58bca1c7c819036ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Tv=C3=A6rmose=20Gleerup?= Date: Mon, 23 Oct 2023 13:00:53 +0200 Subject: [PATCH] fix: missing generics for plugin entrypoint (#1948) --- plugins/twindv1.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/plugins/twindv1.ts b/plugins/twindv1.ts index 042d92c2..5af59f9d 100644 --- a/plugins/twindv1.ts +++ b/plugins/twindv1.ts @@ -1,10 +1,18 @@ -import { stringify, virtual } from "./twindv1_deps.ts"; -import { Plugin } from "../server.ts"; +import { stringify, virtual } from "$fresh/plugins/twindv1_deps.ts"; +import { Plugin } from "$fresh/server.ts"; -import { Options, setup, STYLE_ELEMENT_ID } from "./twindv1/shared.ts"; +import { + Options, + setup, + STYLE_ELEMENT_ID, +} from "$fresh/plugins/twindv1/shared.ts"; + +import { BaseTheme } from "$fresh/plugins/twindv1_deps.ts"; export type { Options }; -export default function twindv1(options: Options): Plugin { +export default function twindv1( + options: Options, +): Plugin { const sheet = virtual(true); setup(options, sheet); const main = `data:application/javascript,import hydrate from "${