(moduleSpecifier)
| 129279 | return moduleSpecifierIsCoveredByPackageJson(moduleSpecifier); |
| 129280 | } |
| 129281 | function allowsImportingSpecifier(moduleSpecifier) { |
| 129282 | if (!packageJsons.length || isAllowedCoreNodeModulesImport(moduleSpecifier)) { |
| 129283 | return true; |
| 129284 | } |
| 129285 | if (ts.pathIsRelative(moduleSpecifier) || ts.isRootedDiskPath(moduleSpecifier)) { |
| 129286 | return true; |
| 129287 | } |
| 129288 | return moduleSpecifierIsCoveredByPackageJson(moduleSpecifier); |
| 129289 | } |
| 129290 | function isAllowedCoreNodeModulesImport(moduleSpecifier) { |
| 129291 | // If we’re in JavaScript, it can be difficult to tell whether the user wants to import |
| 129292 | // from Node core modules or not. We can start by seeing if the user is actually using |
no test coverage detected