import type { ModuleInfo } from '../../types/index' ; export function isRelativePath ( path ) { return /^\./ . test ( path ) ; } export function hasRequired ( moduleIt , moduleName , modulePath ) { if ( ! moduleIt . required ) { return false ; } return moduleIt . required === true || moduleIt . required [ moduleName + modulePath ] ; } export function markRequired ( moduleIt , moduleName , modulePath ) { if ( ! moduleIt . required ) { moduleIt . required = { } ; } moduleIt . required [ moduleName + modulePath ] = true ; }