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 authored and qfox committed Nov 17, 2017
1 parent 820448f commit 6442cf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ 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 6442cf4

Please sign in to comment.