diff --git a/lib/wasmbuild.generated.js b/lib/wasmbuild.generated.js index 43578c6..14c04eb 100644 --- a/lib/wasmbuild.generated.js +++ b/lib/wasmbuild.generated.js @@ -295,7 +295,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",