MCPcopy Create free account
hub / github.com/react-static/react-static / inRepo

Function inRepo

packages/react-static/src/utils/binHelper.js:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20// Recursively checks a module to see if it originated from a
21// react-static package in the repo
22const inRepo = mod => {
23 if (
24 !mod.filename.includes('react-static/packages/react-static/') &&
25 mod.filename.includes('react-static/packages/')
26 ) {
27 return true
28 }
29 if (mod.parent) {
30 return inRepo(mod.parent)
31 }
32 return false
33}
34
35// The following ensures that there is always only a single (and same)
36// copy of React in an app at any given moment.

Callers 1

binHelper.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…