Skip to content

Commit 74c6830

Browse files
committed
fix(turbopack): compiler err
1 parent 2cadbd3 commit 74c6830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

turbopack/crates/turbopack-nodejs/src/chunking_context.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,10 @@ impl ChunkingContext for NodeJsChunkingContext {
321321
extension: RcStr,
322322
) -> Result<Vc<FileSystemPath>> {
323323
let root_path = self.chunk_root_path.clone();
324-
let name = ident
325-
.output_name(self.root_path.clone(), prefix, extension)
326-
.owned()
327-
.await?;
324+
let mut name = ident
325+
.output_name(self.root_path.clone(), prefix, extension.clone())
326+
.await?
327+
.to_string();
328328
if !name.ends_with(extension.as_str()) {
329329
name.push_str(&extension);
330330
}

0 commit comments

Comments
 (0)