chore(workspace): drop isCoreBuilt, unused since the stamp gate replaced the skip helper
This commit is contained in:
1 parent
da8a0370cb
commit
5020954433
1 file changed
-6
@@ -3,7 +3,6 @@
|
|||||||
* from `pkg/` (the shipped build) or `pkg-proofs/` (with the R0 trap exports). Never
|
* from `pkg/` (the shipped build) or `pkg-proofs/` (with the R0 trap exports). Never
|
||||||
* imported by the application bundle.
|
* imported by the application bundle.
|
||||||
*/
|
*/
|
||||||
import { existsSync } from 'node:fs'
|
|
||||||
import { readFile } from 'node:fs/promises'
|
import { readFile } from 'node:fs/promises'
|
||||||
import { dirname, join } from 'node:path'
|
import { dirname, join } from 'node:path'
|
||||||
import { fileURLToPath, pathToFileURL } from 'node:url'
|
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')
|
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. */
|
/** Each import gets its own query string, hence its own module record and instance. */
|
||||||
let imports = 0
|
let imports = 0
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user