diff --git a/packages/loader/lib/main.js b/packages/loader/lib/main.js index 862151dea36..6b208208fc7 100644 --- a/packages/loader/lib/main.js +++ b/packages/loader/lib/main.js @@ -53,14 +53,14 @@ var mainContext = this; var mod = registry[name]; var deps = mod.deps; var callback = mod.callback; - var reified = []; var length = deps.length; + var reified = new Array(length);; for (var i = 0; i < length; i++) { if (deps[i] === 'exports') { - reified.push(exports); + reified[i] = exports; } else { - reified.push(internalRequire(deps[i], name)); + reified[i] = internalRequire(deps[i], name); } }