(key: string, options: InternalResolveOptions)
| 225 | } |
| 226 | |
| 227 | function getResolveCacheKey(key: string, options: InternalResolveOptions) { |
| 228 | // cache key needs to include options which affect |
| 229 | // `resolvePackageEntry` or `resolveDeepImport` |
| 230 | return [ |
| 231 | key, |
| 232 | options.isRequire ? '1' : '0', |
| 233 | options.conditions.join('_'), |
| 234 | options.extensions.join('_'), |
| 235 | options.mainFields.join('_'), |
| 236 | ].join('|') |
| 237 | } |
| 238 | |
| 239 | export function findNearestNodeModules(basedir: string): string | null { |
| 240 | while (basedir) { |
no outgoing calls
no test coverage detected