feat: use go tool

This commit is contained in:
2026-07-03 19:24:01 -04:00
parent 39548b4332
commit 4d0cab1fe0
1542 changed files with 252399 additions and 14 deletions
+22
View File
@@ -0,0 +1,22 @@
// @ts-check
const getError = () => new Error("Node APIs are not available in browser context.");
const throwForSync = () => {
throw getError();
};
export const fs = {
// @ts-ignore
"access": (path, callback) => callback(getError()),
"accessSync": throwForSync,
// @ts-ignore
"readFile": (path, options, callback) => callback(getError()),
"readFileSync": throwForSync
};
export const os = {};
export const path = {
"dirname": throwForSync,
"resolve": throwForSync
};