mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-16 05:00:59 +08:00
6 lines
294 B
TypeScript
6 lines
294 B
TypeScript
// tsgo tolerates a leading comment in an imported JSON module; strict
|
|
// JSON.parse (and Node's own JSON-module import) rejects it — the SC0003
|
|
// gate at the import, never an uncaught parse throw (invariant signature 05).
|
|
import a from "./a.json" with { type: "json" };
|
|
console.log(a.key);
|