fix: browser not reloaded when no island present (#1956)

This commit is contained in:
Marvin Hagemeister
2023-10-18 11:16:51 +02:00
committed by GitHub
parent 3ad39dbf40
commit b984da9113
15 changed files with 239 additions and 19 deletions
+5 -4
View File
@@ -10,10 +10,11 @@ export { escape as regexpEscape } from "https://deno.land/std@0.193.0/regexp/esc
import * as esbuildWasm from "https://deno.land/x/esbuild@v0.19.4/wasm.js";
import * as esbuildNative from "https://deno.land/x/esbuild@v0.19.4/mod.js";
// @ts-ignore trust me
// deno-lint-ignore no-deprecated-deno-api
const esbuild: typeof esbuildWasm = Deno.run === undefined
? esbuildWasm
: esbuildNative;
const esbuild: typeof esbuildWasm =
// deno-lint-ignore no-deprecated-deno-api
Deno.run === undefined || Deno.env.get("FRESH_ESBUILD_LOADER") === "portable"
? esbuildWasm
: esbuildNative;
const esbuildWasmURL = new URL("./esbuild_v0.19.4.wasm", import.meta.url).href;
export { esbuild, esbuildWasm as esbuildTypes, esbuildWasmURL };