Skip to content

Commit afd3cdf

Browse files
author
Jason Gardino
committed
fixing di to use global
1 parent 97cd460 commit afd3cdf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

node/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ if (typeof Map === 'undefined') {
99
require('es6-shim');
1010
}
1111

12-
module.exports = require('../dist/cjs/index');
12+
if (!global.__di) {
13+
global.__di = require('../dist/cjs/index');
14+
}
15+
16+
module.exports = global.__di;

0 commit comments

Comments
 (0)