You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CommonJS: calls through a module binding and directory requires produce no graph edges #2694
In a CommonJS project, two common require forms produce no graph edges, so fn-impact, deps and impact under-report without saying so.
A call through a module binding gets no call edge.const m = require('./x'); m.fn() and require('./x').fn() are not counted as callers of fn. Only the destructured form, const { fn } = require('./x'), is.
A directory require does not resolve to its index.js.require('./tools') adds no import edge to tools/index.js, so that file shows no importers.
On a real codebase this showed up as fn-impact finding 4 of a function's 19 callers.
Activity