martmists
06/26/2026, 3:07 PMturansky
06/26/2026, 3:17 PMmartmists
06/26/2026, 3:22 PMbrowser and nodejs as targets in both js and wasmjs, but I can't seem to find anything signifying which platform would be in use, and it looks like I'll need to use js() blocks to interface with platform-specific parts of JS?turansky
06/26/2026, 3:27 PMmartmists
06/26/2026, 4:01 PMturansky
06/26/2026, 4:06 PMmartmists
06/26/2026, 4:10 PMjs("require('fs')") or js("process") to get handles to the APIs, no?turansky
06/26/2026, 4:15 PM@JsQualifier("fs")
fun readFileSync(path: String)turansky
06/26/2026, 4:17 PMrequire('fs') you will receive warnings or errors in browser bundlersturansky
06/26/2026, 4:17 PMrequire('node:fs')martmists
06/26/2026, 4:36 PMturansky
06/26/2026, 4:44 PMrusshwolf
06/26/2026, 5:26 PM