From 925e91ea1b31404638ad6d691e46a691d23a0f8b Mon Sep 17 00:00:00 2001 From: dmail Date: Mon, 6 Nov 2023 16:35:13 +0100 Subject: [PATCH] fix waiting for importmap --- .../html/jsenv_plugin_html_reference_analysis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/reference_analysis/html/jsenv_plugin_html_reference_analysis.js b/src/plugins/reference_analysis/html/jsenv_plugin_html_reference_analysis.js index d18968e982..39fa3a9d5e 100644 --- a/src/plugins/reference_analysis/html/jsenv_plugin_html_reference_analysis.js +++ b/src/plugins/reference_analysis/html/jsenv_plugin_html_reference_analysis.js @@ -257,7 +257,7 @@ const parseAndTransformHtmlReferences = async ( }); actions.push(async () => { - if (expectedType === "js_module" && importmapReadyPromise) { + if (expectedType === "js_module" && importmapFound) { await importmapReadyPromise; } await inlineReference.urlInfo.cook();