/**
* Returns true when an import source is either the package root or one of its subpath entrypoints.
*/
exportfunction isImportFromPackage(source, packageName) {
return typeof source === 'string' && (source === packageName || source.startsWith("".concat(packageName, "/")));
}