From cb6d961dc4b164669a3cd0d0e2606a6eb05c48cd Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Mon, 6 May 2024 10:46:33 +0900 Subject: [PATCH] revert to esm.sh --- www/deno.json | 4 +++- www/islands/Linter.tsx | 2 +- www/islands/MonacoEditor.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/www/deno.json b/www/deno.json index 27ebd7fcf..5280299f0 100644 --- a/www/deno.json +++ b/www/deno.json @@ -20,7 +20,9 @@ "twind/": "https://esm.sh/twind@0.16.19/", "@twind/core": "https://esm.sh/@twind/core@1.1.3", "@twind/preset-tailwind": "https://esm.sh/@twind/preset-tailwind@1.1.4/", - "@twind/preset-autoprefix": "https://esm.sh/@twind/preset-autoprefix@1.0.7/" + "@twind/preset-autoprefix": "https://esm.sh/@twind/preset-autoprefix@1.0.7/", + "ansi-to-html": "https://esm.sh/v130/ansi-to-html@0.7.2", + "monaco-editor-loader": "https://esm.sh/v130/@monaco-editor/loader@1.3.3" }, "lint": { "rules": { "tags": ["fresh", "recommended"] } }, "exclude": ["**/_fresh/*"] diff --git a/www/islands/Linter.tsx b/www/islands/Linter.tsx index 67f5d1cf6..30db9e0f4 100644 --- a/www/islands/Linter.tsx +++ b/www/islands/Linter.tsx @@ -1,7 +1,7 @@ import { instantiate, run } from "../static/deno_lint.generated.js"; import { useEffect, useMemo } from "preact/hooks"; import { type Signal, useComputed, useSignal } from "@preact/signals"; -import Convert from "npm:ansi-to-html@0.7.2"; +import Convert from "ansi-to-html"; import { type SupportedLanguages } from "./MonacoEditor.tsx"; import { unreachable } from "@std/assert/unreachable"; diff --git a/www/islands/MonacoEditor.tsx b/www/islands/MonacoEditor.tsx index 9bb1d12e9..26ee441b8 100644 --- a/www/islands/MonacoEditor.tsx +++ b/www/islands/MonacoEditor.tsx @@ -1,6 +1,6 @@ import { useEffect, useRef } from "preact/hooks"; import { type Signal, useSignal } from "@preact/signals"; -import loader, { type Monaco } from "npm:@monaco-editor/loader@1.3.3"; +import loader, { type Monaco } from "monaco-editor-loader"; export const supportedLanguages = [ "TypeScript",