diff --git a/src/bootstrap.js b/src/bootstrap.js index a763e256..3bbf6adc 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -17,7 +17,14 @@ // Loads the data-main module automatically. - config.main && seajs.use(config.main) + if (config.src) { + seajs.use(config.src, function(){ + config.main && seajs.use(config.main) + }) + } + else { + config.main && seajs.use(config.main) + } // Parses the pre-call of seajs.config/seajs.use/define. // Ref: test/bootstrap/async-3.html