This commit is contained in:
Alexander Wang 2025-01-13 11:04:48 -07:00
parent b93dd31ba6
commit 44497adf31
No known key found for this signature in database
GPG key ID: BE3937D0D52D8927
2 changed files with 1 additions and 3 deletions

View file

@ -1,5 +1,5 @@
import { build } from "bun";
import { copyFile, mkdir, writeFile, readFile, rm, chmod } from "node:fs/promises";
import { copyFile, mkdir, writeFile, readFile, rm } from "node:fs/promises";
import { join, resolve } from "node:path";
const __dirname = new URL(".", import.meta.url).pathname;
@ -36,7 +36,6 @@ async function buildPlatformFile(platform) {
const platformPath = join(SRC_DIR, "platform.js");
await writeFile(platformPath, platformContent);
await chmod(platformPath, 0o600);
}
async function buildAndCopy(buildType) {

View file

@ -1,7 +1,6 @@
import { wasmBinary, wasmExecJs } from "./wasm-loader.browser.js";
export async function loadFile(path) {
console.log("loading " + path);
if (path === "./d2.wasm") {
return wasmBinary.buffer;
}