mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Stop not emitting mappings for function and class names (#25210)
This commit is contained in:
@@ -545,7 +545,7 @@ namespace ts {
|
||||
return pipelineEmitWithoutComments;
|
||||
|
||||
case PipelinePhase.SourceMaps:
|
||||
if (onEmitSourceMapOfNode && hint !== EmitHint.SourceFile && hint !== EmitHint.IdentifierName) {
|
||||
if (onEmitSourceMapOfNode && hint !== EmitHint.SourceFile) {
|
||||
return pipelineEmitWithSourceMap;
|
||||
}
|
||||
// falls through
|
||||
@@ -578,7 +578,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
function pipelineEmitWithSourceMap(hint: EmitHint, node: Node) {
|
||||
Debug.assert(hint !== EmitHint.SourceFile && hint !== EmitHint.IdentifierName);
|
||||
Debug.assert(hint !== EmitHint.SourceFile);
|
||||
Debug.assertDefined(onEmitSourceMapOfNode)(hint, node, pipelineEmitWithHint);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user