Browse Source

component auto-resolver will now use the components name if provided

main
Jacob Clevenger 4 years ago
parent
commit
f17712368d
  1. 2
      src/components/index.ts

2
src/components/index.ts

@ -7,7 +7,7 @@ function getName(key: string) {
}
Object.entries(components).forEach(([key, value]) => {
exportable[getName(key)] = value.default
exportable[value.name ? value.name : getName(key)] = value.default
})
export default exportable

Loading…
Cancel
Save