MCPcopy Index your code
hub / github.com/webpack/webpack / composeWithLoaderSourceMap

Function composeWithLoaderSourceMap

lib/typescript/TypeScriptPlugin.js:99–116  ·  view source on GitHub ↗
(
	resource,
	strippedSource,
	stripMap,
	preStripSource,
	loaderSourceMap
)

Source from the content-addressed store, hash-verified

97 * @returns {RawSourceMap} composed map
98 */
99const 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

Callers 1

_processResultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected