Files
scriptc/tests/fixtures/self-hosting/cjs-client-node.ts
Chris Tate 385f0fb80c feat(compiler): compile CommonJS syntax passes with the native client
- Move CommonJS export detection and package rewrites onto shared native syntax with explicit dependency resolution.
- Preserve complete bundled-helper matching, significant line breaks, and deep source traversal without the TypeScript 5 parser.
- Compile optional string indexing and exercise the production CommonJS passes in native executables.
2026-09-28 12:02:00 -05:00

8 lines
396 B
TypeScript

import { Ts7Api } from "../../../packages/compiler/src/frontend/ts7/rpc-api.js";
import { Ts7SourceParser } from "../../../packages/compiler/src/frontend/ts7/source-parser.js";
import { runCjsClient } from "./cjs-client-cases.js";
const parser = new Ts7SourceParser((options) => new Ts7Api(options));
try { runCjsClient(parser, process.argv[3]!, process.argv[4]!); }
finally { parser.close(); }