ttsc
Version:
General-purpose TypeScript-Go compiler, runtime, plugin host, and LSP host.
16 lines • 843 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const runtimeHooks_1 = require("./runtimeHooks");
/**
* `--require` target that only installs the runtime module hooks. `ttsx` puts
* it on `NODE_OPTIONS` for the child process so every descendant the program
* spawns (e.g. a worker started with `node worker.ts`) inherits the same
* source-loading hooks, the way `ts-node` propagates through `--require
* ts-node/register`. The preload itself is CommonJS and only registers the
* hooks; ESM support comes from the `registerHooks` they install, not from how
* the preload is loaded. The entry process additionally goes through the
* bootstrap, which loads the entry itself; here we only register
* (idempotently).
*/
(0, runtimeHooks_1.installRuntimeHooks)();
//# sourceMappingURL=runtimeHookPreload.js.map