import type { NpmPackage } from './types' ; export function mightBeABrowserLibrary ( packageJson ) { if ( packageJson . private === true ) { return false ; } if ( packageJson . main === undefined && packageJson . exports === undefined ) { return false ; } return true ; }