Repository URL to install this package:
|
Version:
1.2.7 ▾
|
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 }