MCPcopy
hub / github.com/webpack/webpack / error

Method error

lib/rules/RuleSetCompiler.js:459–463  ·  view source on GitHub ↗

* Returns an error object. * @param {string} path current path * @param {EXPECTED_ANY} value value at the error location * @param {string} message message explaining the problem * @returns {Error} an error object

(path, value, message)

Source from the content-addressed store, hash-verified

457 * @returns {Error} an error object
458 */
459 error(path, value, message) {
460 return new Error(
461 `Compiling RuleSet failed: ${message} (at ${path}: ${value})`
462 );
463 }
464}
465
466module.exports = RuleSetCompiler;

Callers 4

compileRuleMethod · 0.95
compileConditionMethod · 0.95
conflictWithMethod · 0.45
applyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected