mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-22 05:59:31 +08:00
* Expand Node 24 ESM metadata compatibility * Fix ESM metadata lowering in native compiler bootstrap
4 lines
138 B
TypeScript
4 lines
138 B
TypeScript
const key: "url" | "filename" = process.argv[2] === "url" ? "url" : "filename";
|
|
const computed = import.meta[key];
|
|
console.log(computed);
|