mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
9 lines
330 B
TypeScript
9 lines
330 B
TypeScript
// ESM-importing-CJS default semantics: `import d from "./cjs"` binds d to
|
|
// module.exports (Node's interop rule) — table members read through the
|
|
// binding, scalar exports ARE the value.
|
|
import table from "./table.cjs";
|
|
import scalar from "./scalar.cjs";
|
|
|
|
console.log(table.seven, table.greet("x"));
|
|
console.log(scalar + 1);
|