Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit fc61476

Browse files
qballerAmir Arad
authored andcommitted
refactored singleton module (#102)
1 parent 1f851e6 commit fc61476

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@
6262
"node": ">=0.12"
6363
},
6464
"dependencies": {
65-
"lodash": "4.17.4",
6665
"escalate": "0.0.397",
66+
"ifndef": "0.0.1",
67+
"lodash": "4.17.4",
6768
"mobx": "3.1.10"
6869
},
6970
"keywords": [

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export {LifeCycleManager} from './core/lifecycle';
1717
export {defineEnum, EnumBase} from './data-types/define-enum';
1818
export {either} from './core/generic-types';
1919
export {computed} from './core/computed-decorator';
20-
import {setGlobalModule} from './singleton-module';
20+
import {ifndef} from 'ifndef';
2121
import {MuObject} from "./objects/object";
2222
import {MuBase} from "./core/base";
2323
import {isType} from "./types";
@@ -40,4 +40,4 @@ export function isNullable(type:any) {
4040
}
4141

4242
declare const module: {exports:any};
43-
module.exports = setGlobalModule(module.exports);
43+
module.exports = ifndef('mutable', module.exports);

src/singleton-module.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)