MCPcopy Index your code
hub / github.com/nodejs/node / parseAndEvalModuleTypeScript

Function parseAndEvalModuleTypeScript

lib/internal/process/execution.js:385–389  ·  view source on GitHub ↗

* * Function used to shortcut when `--input-type=module-typescript` is set. * @param {string} source * @param {boolean} print

(source, print)

Source from the content-addressed store, hash-verified

383 * @param {boolean} print
384 */
385function parseAndEvalModuleTypeScript(source, print) {
386 // We know its a TypeScript module, we can safely emit the experimental warning.
387 const strippedSource = stripTypeScriptModuleTypes(source, kEvalTag);
388 evalModuleEntryPoint(strippedSource, print);
389}
390
391/**
392 * Function used to shortcut when `--input-type=commonjs-typescript` is set

Callers 3

eval_string.jsFile · 0.85
worker_thread.jsFile · 0.85
eval_stdin.jsFile · 0.85

Calls 2

evalModuleEntryPointFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…