Skip to content

Commit

Permalink
fix is_self_async
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Apr 22, 2024
1 parent 3f87e83 commit 23a64a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/turbopack-ecmascript/src/references/external_module.rs
Expand Up @@ -212,8 +212,10 @@ impl ChunkItem for CachedExternalModuleChunkItem {
}

#[turbo_tasks::function]
fn is_self_async(&self) -> Vc<bool> {
Vc::cell(true)
async fn is_self_async(&self) -> Result<Vc<bool>> {
Ok(Vc::cell(
self.module.await?.external_type == CachedExternalType::EcmaScriptViaImport,
))
}
}

Expand Down

0 comments on commit 23a64a6

Please sign in to comment.