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

Function isFormatRequiringExtensions

test/fixtures/snapshot/typescript.js:121965–121972  ·  view source on GitHub ↗
(compilerOptions, importingSourceFileName, host)

Source from the content-addressed store, hash-verified

121963 };
121964 }
121965 function isFormatRequiringExtensions(compilerOptions, importingSourceFileName, host) {
121966 var _a;
121967 if (ts.getEmitModuleResolutionKind(compilerOptions) !== ts.ModuleResolutionKind.Node16
121968 && ts.getEmitModuleResolutionKind(compilerOptions) !== ts.ModuleResolutionKind.NodeNext) {
121969 return false;
121970 }
121971 return ts.getImpliedNodeFormatForFile(importingSourceFileName, (_a = host.getPackageJsonInfoCache) === null || _a === void 0 ? void 0 : _a.call(host), getModuleResolutionHost(host), compilerOptions) !== ts.ModuleKind.CommonJS;
121972 }
121973 function getModuleResolutionHost(host) {
121974 var _a;
121975 return {

Callers 2

getEndingFunction · 0.85
getPreferencesForUpdateFunction · 0.85

Calls 2

getModuleResolutionHostFunction · 0.85
callMethod · 0.45

Tested by

no test coverage detected