Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
import { isObj } from 'exotic'

function toExport(exported: any) {
  if (exported.__esModule === true || isObj(exported.default) === true) {
    return exported.default
  } else if (exported.prototype) {
    return exported
  } else {
    return Object.values(exported).pop()
  }
}

const ALL_INITIALIZERS = new WeakMap()

export { toExport, ALL_INITIALIZERS }