Skip to content

Commit

Permalink
load the fellow edition that corresponds with the projectz edition
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Oct 23, 2016
1 parent 885c301 commit 1acb7e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/lib/person.js
@@ -1,7 +1,11 @@
/* @flow */
'use strict'

const Fellow = require('fellow/es2015')
// Use the same edition of fellow as we are using here
// This is needed rather than jsut doing require('fellow') as if fellow loads ES6 Classes
// But projects is using ES5 Classes, then we will not be able to extend the fellow class
const {join, dirname} = require('path')
const Fellow = require(join('fellow', dirname('..')))

// Define
class Person extends Fellow {
Expand Down

0 comments on commit 1acb7e2

Please sign in to comment.