Skip to content

Commit

Permalink
Add default export to compiled classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeti-or committed Nov 8, 2017
1 parent 9438408 commit e9143ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ export default function Core(options) {
entity.declWrappers = null;
}

if(entityCls) {
(entity.wrappedCls || entityCls).default = (entity.wrappedCls || entityCls);
}

return entity.wrappedCls || entityCls;
}

Expand Down

0 comments on commit e9143ed

Please sign in to comment.