Skip to content

Commit

Permalink
Merge pull request markfinger#7 from jzvelc/master
Browse files Browse the repository at this point in the history
Babel 6 export default support
  • Loading branch information
markfinger committed Nov 11, 2015
2 parents b83270e + 8311112 commit f7d3e07
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 f7d3e07

Please sign in to comment.