diff --git a/lib/loader/loader.js b/lib/loader/loader.js index ab25e53..574f862 100644 --- a/lib/loader/loader.js +++ b/lib/loader/loader.js @@ -127,7 +127,7 @@ var loader, define, requireModule, require, requirejs; }; Module.prototype.build = function() { - if (this.state === FAILED) { return; } + if (this.state === FAILED || this.state === LOADED) { return; } this.state = FAILED; this.reify() this.exports();