1 |
|
2 |
|
3 | var semver = require('semver')
|
4 |
|
5 | // Choosing between a source ES6 syntax and a babel transpiled
|
6 | // ES5. Note that ES6 source code uses only functions that are
|
7 | // available in ES5 environment (or lodash 4.x equivalents), so no
|
8 | // globals modifications are required.
|
9 | if (semver.lt(process.version, '6.0.0')) {
|
10 | module.exports = require('./lib/ChatService')
|
11 | } else {
|
12 | module.exports = require('./src/ChatService')
|
13 | }
|