Commit a5473989 authored by Tobias Koppers's avatar Tobias Koppers

Remove turbopack-transition from interopDefault import in loader tree

The import is added to the generated loader tree code, not the template
itself, so no transition attribute is needed.
Co-Authored-By: 's avatarClaude <noreply@anthropic.com>
parent 85b2d674
...@@ -460,8 +460,7 @@ impl AppPageLoaderTreeBuilder { ...@@ -460,8 +460,7 @@ impl AppPageLoaderTreeBuilder {
// above (see write_metadata_item / write_static_metadata_item). Import it // above (see write_metadata_item / write_static_metadata_item). Import it
// explicitly here so the template does not need to export it. // explicitly here so the template does not need to export it.
let interop_import = rcstr!( let interop_import = rcstr!(
"import { interopDefault } from 'next/dist/esm/server/app-render/interop-default' \ "import { interopDefault } from 'next/dist/esm/server/app-render/interop-default';"
with { 'turbopack-transition': 'next-server-utility' };"
); );
if self.loader_tree_code.contains("interopDefault") { if self.loader_tree_code.contains("interopDefault") {
self.base.imports.insert(0, interop_import); self.base.imports.insert(0, interop_import);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment