mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix detecting if main module is async
This commit is contained in:
@@ -85,7 +85,9 @@ function runEagerModules(config, callback) {
|
||||
var exports = config.require(path);
|
||||
|
||||
if (checkAsyncModule(exports)) {
|
||||
mainModuleAsync = true;
|
||||
if (path === config.mainModulePath) {
|
||||
mainModuleAsync = true;
|
||||
}
|
||||
|
||||
// Is an async module
|
||||
exports.then(function (exports) {
|
||||
|
||||
Reference in New Issue
Block a user