Skip to content

Commit

Permalink
fix infinite recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jul 18, 2023
1 parent 8f05542 commit fc2fde6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions crates/turbopack/src/rebase/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,11 @@ impl OutputAsset for RebasedAsset {
async fn references(&self) -> Result<Vc<OutputAssets>> {
let mut references = Vec::new();
for &module in all_referenced_modules(self.source).await?.iter() {
references.push(Vc::upcast(
RebasedAsset {
source: module,
input_dir: self.input_dir,
output_dir: self.output_dir,
}
.cell(),
));
references.push(Vc::upcast(RebasedAsset::new(
module,
self.input_dir,
self.output_dir,
)));
}
Ok(Vc::cell(references))
}
Expand Down

0 comments on commit fc2fde6

Please sign in to comment.