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

Function getEmitScriptTarget

test/fixtures/snapshot/typescript.js:20245–20250  ·  view source on GitHub ↗
(compilerOptions)

Source from the content-addressed store, hash-verified

20243 }
20244 ts.getSetExternalModuleIndicator = getSetExternalModuleIndicator;
20245 function getEmitScriptTarget(compilerOptions) {
20246 return compilerOptions.target ||
20247 (compilerOptions.module === ts.ModuleKind.Node16 && 9 /* ScriptTarget.ES2022 */) ||
20248 (compilerOptions.module === ts.ModuleKind.NodeNext && 99 /* ScriptTarget.ESNext */) ||
20249 0 /* ScriptTarget.ES3 */;
20250 }
20251 ts.getEmitScriptTarget = getEmitScriptTarget;
20252 function getEmitModuleKind(compilerOptions) {
20253 return typeof compilerOptions.module === "number" ?

Callers 2

getEmitModuleKindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected