From 0f1b8c61dbd435aa7d599d8ab625b69a1191dce5 Mon Sep 17 00:00:00 2001 From: hrmny <8845940+ForsakenHarmony@users.noreply.github.com> Date: Fri, 19 Apr 2024 19:17:26 +0200 Subject: [PATCH] fix `is_self_async` --- crates/turbopack-ecmascript/src/references/external_module.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/turbopack-ecmascript/src/references/external_module.rs b/crates/turbopack-ecmascript/src/references/external_module.rs index a824bf31d8221c..6623e3f2e7037f 100644 --- a/crates/turbopack-ecmascript/src/references/external_module.rs +++ b/crates/turbopack-ecmascript/src/references/external_module.rs @@ -212,8 +212,8 @@ impl ChunkItem for CachedExternalModuleChunkItem { } #[turbo_tasks::function] - fn is_self_async(&self) -> Vc { - Vc::cell(true) + async fn is_self_async(&self) -> Result> { + Vc::cell(self.module.await?.external_type == CachedExternalType::EcmaScriptViaImport) } }