mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
2 lines
241 B
JavaScript
2 lines
241 B
JavaScript
const j = await (typeof process === "object" && process.versions?.node ? import("fs").then(fs => fs.promises.readFile(new URL(import.meta.resolve("./x.json")))).then(JSON.parse) : fetch(import.meta.resolve("./x.json")).then(r => r.json()));
|