MCPcopy Create free account
hub / github.com/rollup/plugins / hasConflicts

Function hasConflicts

packages/commonjs/src/utils.js:10–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 let i = 1;
9 let deconflicted = makeLegalIdentifier(identifier);
10 const hasConflicts = () =>
11 scopes.some((scope) => scope.contains(deconflicted)) || globals.has(deconflicted);
12
13 while (hasConflicts()) {
14 deconflicted = makeLegalIdentifier(`${identifier}_${i}`);

Callers 1

deconflictFunction · 0.85

Calls 2

hasMethod · 0.80
containsMethod · 0.65

Tested by

no test coverage detected