From 5ffe6bb780f8688ed58212ced4197220399a7206 Mon Sep 17 00:00:00 2001 From: zodern Date: Fri, 6 Jan 2023 16:53:31 -0600 Subject: [PATCH] Fix detecting if main module is async --- packages/core-runtime/load-js-image.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {