fix bug where children is not visible on module object
This commit is contained in:
parent
c8a88638be
commit
f51d3a4153
|
@ -3,7 +3,7 @@ module.exports = function(module) {
|
|||
module.deprecate = function() {};
|
||||
module.paths = [];
|
||||
// module.parent = undefined by default
|
||||
module.children = [];
|
||||
if(!module.children) module.children = [];
|
||||
Object.defineProperty(module, "loaded", {
|
||||
enumerable: true,
|
||||
configurable: false,
|
||||
|
|
Loading…
Reference in New Issue