Skip to content

Commit

Permalink
Babel 6 export default support
Browse files Browse the repository at this point in the history
  • Loading branch information
Jure Žvelc committed Nov 11, 2015
1 parent b83270e commit 8311112
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ Component.prototype.getComponent = function getComponent(cb) {

try {
this.component = require(this.path);
if (this.component && typeof this.component === 'object' && this.component.default) {
this.component = this.component.default
}
} catch(err) {
return cb(err);
}
Expand Down

0 comments on commit 8311112

Please sign in to comment.