Function
composeWithLoaderSourceMap
(
resource,
strippedSource,
stripMap,
preStripSource,
loaderSourceMap
)
Source from the content-addressed store, hash-verified
| 97 | * @returns {RawSourceMap} composed map |
| 98 | */ |
| 99 | const composeWithLoaderSourceMap = ( |
| 100 | resource, |
| 101 | strippedSource, |
| 102 | stripMap, |
| 103 | preStripSource, |
| 104 | loaderSourceMap |
| 105 | ) => { |
| 106 | const SourceMapSource = getSourceMapSource(); |
| 107 | const composed = new SourceMapSource( |
| 108 | strippedSource, |
| 109 | resource, |
| 110 | stripMap, |
| 111 | preStripSource, |
| 112 | loaderSourceMap, |
| 113 | true |
| 114 | ); |
| 115 | return /** @type {RawSourceMap} */ (composed.sourceAndMap().map) || stripMap; |
| 116 | }; |
| 117 | |
| 118 | /** |
| 119 | * Run `module.stripTypeScriptTypes` on the input, wrapping any thrown |
Tested by
no test coverage detected