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
+4 -1
View File
@@ -1,5 +1,8 @@
{
"imports": {
"$fresh/": "../../"
"$fresh/": "../../",
"preact": "https://esm.sh/preact@10.6.6",
"preact/": "https://esm.sh/preact@10.6.6/",
"preact-render-to-string": "https://esm.sh/preact-render-to-string@5.1.20?deps=preact@10.6.6"
}
}
-3
View File
@@ -1,6 +1,3 @@
/** @jsx h */
import { h } from "$fresh/runtime.ts";
export default function Home(): null {
throw new Error("boom!");
}