mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-19 05:29:46 +08:00
- 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.
8 lines
396 B
TypeScript
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(); }
|