MCPcopy
hub / github.com/webpack/webpack / conflictWith

Method conflictWith

lib/rules/UseEffectRulePlugin.js:39–47  ·  view source on GitHub ↗
(property, correctProperty)

Source from the content-addressed store, hash-verified

37 * @param {string} correctProperty correct property
38 */
39 const conflictWith = (property, correctProperty) => {
40 if (unhandledProperties.has(property)) {
41 throw ruleSetCompiler.error(
42 `${path}.${property}`,
43 rule[property],
44 `A Rule must not have a '${property}' property when it has a '${correctProperty}' property`
45 );
46 }
47 };
48
49 if (unhandledProperties.has("use")) {
50 unhandledProperties.delete("use");

Callers

nothing calls this directly

Calls 2

hasMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected