diff --git a/lib/wasmbuild.generated.js b/lib/wasmbuild.generated.js index f37b87a..cdf15e0 100644 --- a/lib/wasmbuild.generated.js +++ b/lib/wasmbuild.generated.js @@ -284,7 +284,9 @@ class WasmBuildLoader { const isFile = url.protocol === "file:"; // make file urls work in Node via dnt - const isNode = globalThis.process?.versions?.node != null; + const isNode = globalThis.Deno == null + && globalThis.process?.versions?.node != null + && globalThis.Buffer != null; if (isFile && typeof Deno !== "object") { throw new Error( "Loading local files are not supported in this environment",