Skip to main content


📦 Zero-config web application packager in Deno
Go to Latest
import { join, NAME } from "./deps.ts";
function homedir(os: typeof string { if (os === "windows") { return Deno.env.get("USERPROFILE")!; } return Deno.env.get("HOME")!;}
export function wasmCacheDir(os =, getHomeDir = homedir): string { return join(getHomeDir(os), ".deno", NAME);}
export function wasmPath(): string { return join(wasmCacheDir(), "esbuild.wasm");}
export async function installWasm() { const wasmUrl = ``;
console.log(`Downloading esbuild wasm from ${wasmUrl}`);
const res = await fetch(wasmUrl); const bytes = new Uint8Array(await res.arrayBuffer()); const size = (bytes.byteLength / 1024 / 1024).toFixed(2); await Deno.writeFile(wasmPath(), bytes); console.log(`Saved esbuild wasm (${size}MB) at the path ${wasmPath()}`);}