(resolvedId: ResolveIdResult, importee: string)
| 48 | }; |
| 49 | |
| 50 | const shouldCheckDevModule = (resolvedId: ResolveIdResult, importee: string) => |
| 51 | resolvedId && |
| 52 | importee && |
| 53 | typeof resolvedId !== 'string' && |
| 54 | resolvedId.id && |
| 55 | resolvedId.id.includes('node_modules') && |
| 56 | (resolvedId.id.endsWith('.js') || resolvedId.id.endsWith('.mjs')) && |
| 57 | !resolvedId.external && |
| 58 | !importee.startsWith('.') && |
| 59 | !importee.startsWith('/'); |
| 60 | |
| 61 | const getPackageJsonPath = (resolvedPath: string, importee: string): string => { |
| 62 | let currentPath = resolvedPath; |
no outgoing calls
no test coverage detected