MCPcopy
hub / github.com/webpack/webpack / deprecated

Function deprecated

lib/TemplatedPathPlugin.js:301–313  ·  view source on GitHub ↗
(fn, message, code)

Source from the content-addressed store, hash-verified

299 * @returns {T} function with deprecation output
300 */
301const deprecated = (fn, message, code) => {
302 let d = deprecationCache.get(message);
303 if (d === undefined) {
304 d = util.deprecate(deprecatedFunction, message, code);
305 deprecationCache.set(message, d);
306 }
307 return /** @type {T} */ (
308 (...args) => {
309 d();
310 return fn(...args);
311 }
312 );
313};
314
315/**
316 * Callback used to compute a path from contextual data. The type parameter

Callers 1

interpolateFunction · 0.85

Calls 4

fnFunction · 0.70
dFunction · 0.50
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected