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

Function shouldEmitSourceMaps

test/fixtures/snapshot/typescript.js:110468–110471  ·  view source on GitHub ↗
(mapOptions, sourceFileOrBundle)

Source from the content-addressed store, hash-verified

110466 writer.clear();
110467 }
110468 function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {
110469 return (mapOptions.sourceMap || mapOptions.inlineSourceMap)
110470 && (sourceFileOrBundle.kind !== 305 /* SyntaxKind.SourceFile */ || !ts.fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Extension.Json */));
110471 }
110472 function getSourceRoot(mapOptions) {
110473 // Normalize source root and make sure it has trailing "/" so that it can be used to combine paths with the
110474 // relative paths of the sources list in the sourcemap

Callers 3

printSourceFileOrBundleFunction · 0.85
getPipelinePhaseFunction · 0.85
onEnterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected