diff --git a/crates/turbopack-ecmascript/src/chunk/mod.rs b/crates/turbopack-ecmascript/src/chunk/mod.rs index b350abeaadc64..a4f789b370a53 100644 --- a/crates/turbopack-ecmascript/src/chunk/mod.rs +++ b/crates/turbopack-ecmascript/src/chunk/mod.rs @@ -512,11 +512,7 @@ impl EcmascriptChunkContentEntryVc { issue.as_issue().emit(); let mut code = CodeBuilder::default(); code += "(() => {{\n\n"; - write!( - code, - "throw new Error({error});\n", - error = &js_error_message - )?; + writeln!(code, "throw new Error({error});", error = &js_error_message)?; code += "\n}})"; code.build().cell() }