MCPcopy
hub / github.com/webpack/webpack / deprecationChangedHookMessage

Function deprecationChangedHookMessage

lib/NormalModuleFactory.js:241–249  ·  view source on GitHub ↗
(name, hook)

Source from the content-addressed store, hash-verified

239 * @returns {string} result
240 */
241const deprecationChangedHookMessage = (name, hook) => {
242 const names = hook.taps.map((tapped) => tapped.name).join(", ");
243
244 return (
245 `NormalModuleFactory.${name} (${names}) is no longer a waterfall hook, but a bailing hook instead. ` +
246 "Do not return the passed object, but modify it instead. " +
247 "Returning false will ignore the request and results in no module created."
248 );
249};
250
251const ruleSetCompiler = new RuleSetCompiler([
252 new BasicMatcherRulePlugin("test", "resource"),

Callers 2

constructorMethod · 0.85
createMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected