diff --git a/packages/core-wasm/src/node.ts b/packages/core-wasm/src/node.ts index 44efc634..97f86ee3 100644 --- a/packages/core-wasm/src/node.ts +++ b/packages/core-wasm/src/node.ts @@ -3,7 +3,6 @@ * from `pkg/` (the shipped build) or `pkg-proofs/` (with the R0 trap exports). Never * imported by the application bundle. */ -import { existsSync } from 'node:fs' import { readFile } from 'node:fs/promises' import { dirname, join } from 'node:path' import { fileURLToPath, pathToFileURL } from 'node:url' @@ -23,11 +22,6 @@ export function coreWasmPath(build: CoreBuild = 'pkg'): string { return join(PACKAGE_DIR, build, 'faunosteo_wasm_bg.wasm') } -/** True when `pnpm wasm:build` has produced the module. */ -export function isCoreBuilt(build: CoreBuild = 'pkg'): boolean { - return existsSync(coreWasmPath(build)) -} - /** Each import gets its own query string, hence its own module record and instance. */ let imports = 0