diff --git a/packages/core-runtime/load-js-image.js b/packages/core-runtime/load-js-image.js index a3173c1d8e..795a46ea0e 100644 --- a/packages/core-runtime/load-js-image.js +++ b/packages/core-runtime/load-js-image.js @@ -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) {