Skip to content

Commit e990105

Browse files
committed
Export the class Container to the world
Usefull to improve Flow detection in application that use skippy
1 parent 31fc38b commit e990105

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

index.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
11
'use strict';
22

3-
module.exports = require('./src/ContainerFactory');
3+
// ES5 equivalent of ES6 modules `export`
4+
// @see https://github.com/addyosmani/es6-equivalents-in-es5#modules
5+
// This allow the end user to do an ES6 import:
6+
// `import ContainerFactory, { Container } from 'skippy';`
7+
8+
var _extends = function (target) {
9+
for (var i = 1; i < arguments.length; i++) {
10+
var source = arguments[i];
11+
for (var key in source) {
12+
target[key] = source[key];
13+
}
14+
}
15+
16+
return target;
17+
};
18+
19+
exports.Container = require('./src/Container');
20+
exports['default'] = require('./src/ContainerFactory');
21+
22+
module.exports = _extends(exports['default'], exports);

0 commit comments

Comments
 (0)