diff --git a/crates/turbopack-core/src/raw_output.rs b/crates/turbopack-core/src/raw_output.rs index 870da2bcaa0bf..b79ab79465f5b 100644 --- a/crates/turbopack-core/src/raw_output.rs +++ b/crates/turbopack-core/src/raw_output.rs @@ -1,4 +1,5 @@ use turbo_tasks::Vc; +use turbo_tasks_fs::FileSystemPath; use crate::{ asset::{Asset, AssetContent}, @@ -11,6 +12,7 @@ use crate::{ /// This module has no references to other modules. #[turbo_tasks::value] pub struct RawOutput { + path: Vc, source: Vc>, } @@ -18,7 +20,7 @@ pub struct RawOutput { impl OutputAsset for RawOutput { #[turbo_tasks::function] fn ident(&self) -> Vc { - self.source.ident() + AssetIdent::from_path(self.path) } } @@ -33,7 +35,7 @@ impl Asset for RawOutput { #[turbo_tasks::value_impl] impl RawOutput { #[turbo_tasks::function] - pub fn new(source: Vc>) -> Vc { - RawOutput { source }.cell() + pub fn new(path: Vc, source: Vc>) -> Vc { + RawOutput { path, source }.cell() } }