MCPcopy
hub / github.com/webpack/webpack / getOriginalSourceRegistry

Function getOriginalSourceRegistry

lib/SourceMapDevToolPlugin.js:97–104  ·  view source on GitHub ↗
(compilation)

Source from the content-addressed store, hash-verified

95 * @returns {Map<string, Source>} registry
96 */
97const getOriginalSourceRegistry = (compilation) => {
98 let registry = originalSourceRegistry.get(compilation);
99 if (registry === undefined) {
100 registry = new Map();
101 originalSourceRegistry.set(compilation, registry);
102 }
103 return registry;
104};
105
106/**
107 * Extracts source and source map from a Source object, falling back to a

Callers 1

applyMethod · 0.85

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected