chore: use esm.sh + optionally use native esbuild (#52)

`preact` and `preact-render-to-string` are now imported from esm.sh.

Additionally, the native binary build of esbuild will now be used in
deno cli to speed up bundle times.
This commit is contained in:
Luca Casonato
2021-09-25 02:28:43 +02:00
committed by GitHub
parent a929b1022a
commit aeaddb1eaa
3 changed files with 28 additions and 19 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
export * from "https://x.lcas.dev/preact@10.5.11/mod.js";
export * from "https://esm.sh/preact@10.5.14";
export {
useCallback,
useContext,
@@ -11,7 +11,7 @@ export {
useReducer,
useRef,
useState,
} from "https://x.lcas.dev/preact@10.5.11/hooks.js";
} from "https://esm.sh/preact@10.5.14/hooks";
export type {
CreateHandle,
EffectCallback,
@@ -20,4 +20,4 @@ export type {
Reducer,
Ref,
StateUpdater,
} from "https://x.lcas.dev/preact@10.5.11/hooks.js";
} from "https://esm.sh/preact@10.5.14/hooks";