Comparing version 0.2.1 to 0.2.2
@@ -6,3 +6,2 @@ 'use strict'; | ||
}); | ||
exports.Subscription = exports.EventEmitter = exports.default = undefined; | ||
@@ -30,3 +29,14 @@ var _channel = require('./channel'); | ||
exports.default = _channel2.default; | ||
exports.EventEmitter = _eventEmitter2.default; | ||
exports.Subscription = _subscription2.default; | ||
/* | ||
Can not export additional classes like: | ||
export { | ||
EventEmitter, | ||
Subscription, | ||
}; | ||
because in that case babel's output is not compatible with pure commonjs | ||
See: http://stackoverflow.com/questions/33505992/babel-6-changes-how-it-exports-default | ||
*/ | ||
module.exports = exports['default']; |
{ | ||
"name": "chnl", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Chrome compatible javascript channels", | ||
@@ -5,0 +5,0 @@ "main": "./es5/index.js", |
@@ -12,6 +12,13 @@ /** | ||
export { | ||
Channel as default, | ||
EventEmitter, | ||
Subscription, | ||
}; | ||
export default Channel; | ||
/* | ||
Can not export additional classes like: | ||
export { | ||
EventEmitter, | ||
Subscription, | ||
}; | ||
because in that case babel's output is not compatible with pure commonjs | ||
See: http://stackoverflow.com/questions/33505992/babel-6-changes-how-it-exports-default | ||
*/ |
47934
1021