Skip to content

Commit 985740f

Browse files
committed
Revert "avoid manual resolve"
This reverts commit 0a0f84a.
1 parent 16bc145 commit 985740f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

turbopack/crates/turbopack-core/src/module.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use anyhow::Result;
12
use turbo_rcstr::RcStr;
23
use turbo_tasks::{ResolvedVc, TaskInput, ValueToString, Vc};
34

@@ -22,8 +23,8 @@ pub trait Module: Asset {
2223
/// The identifier of the [Module] as string. It's expected to be unique and capture
2324
/// all properties of the [Module].
2425
#[turbo_tasks::function]
25-
fn ident_string(self: Vc<Self>) -> Vc<RcStr> {
26-
self.ident().to_string()
26+
async fn ident_string(self: Vc<Self>) -> Result<Vc<RcStr>> {
27+
Ok(self.ident().resolve().await?.to_string())
2728
}
2829

2930
/// Other [Module]s or [OutputAsset]s referenced from this [Module].

0 commit comments

Comments
 (0)