We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16bc145 commit 985740fCopy full SHA for 985740f
turbopack/crates/turbopack-core/src/module.rs
@@ -1,3 +1,4 @@
1
+use anyhow::Result;
2
use turbo_rcstr::RcStr;
3
use turbo_tasks::{ResolvedVc, TaskInput, ValueToString, Vc};
4
@@ -22,8 +23,8 @@ pub trait Module: Asset {
22
23
/// The identifier of the [Module] as string. It's expected to be unique and capture
24
/// all properties of the [Module].
25
#[turbo_tasks::function]
- fn ident_string(self: Vc<Self>) -> Vc<RcStr> {
26
- self.ident().to_string()
+ async fn ident_string(self: Vc<Self>) -> Result<Vc<RcStr>> {
27
+ Ok(self.ident().resolve().await?.to_string())
28
}
29
30
/// Other [Module]s or [OutputAsset]s referenced from this [Module].
0 commit comments