/**
* Returns true when an import source is either the package root or one of its subpath entrypoints.
*/exportfunctionisImportFromPackage(source, packageName) {
returntypeof source === 'string' && (source === packageName || source.startsWith(`${packageName}/`));
}