| 20 | // Recursively checks a module to see if it originated from a |
| 21 | // react-static package in the repo |
| 22 | const 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…