MCPcopy
hub / github.com/webpack/webpack / newFn

Function newFn

lib/util/cleverMerge.js:355–360  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

353 }
354 /** @type {DynamicFunction} */
355 const newFn = (...args) => {
356 const fnResult = fn(...args);
357 return internalCaching
358 ? cachedCleverMerge(fnResult, second)
359 : cleverMerge(fnResult, second);
360 };
361 newFn[DYNAMIC_INFO] = [fn, second];
362 return /** @type {T & O} */ (
363 serializeObject(firstObject.static, { byProperty, fn: newFn })

Callers 3

getChunkGraphForChunkMethod · 0.85

Calls 3

cachedCleverMergeFunction · 0.85
fnFunction · 0.70
cleverMergeFunction · 0.70

Tested by

no test coverage detected