Import interopDefault from Rust loader tree instead of template export
interopDefault is used as a free variable in the Turbopack-generated loader
tree code. Turbopack tree-shakes it from the template since it has no static
use there. Fix by explicitly adding the import from app_page_loader_tree.rs
when the generated code uses it, so the template does not need to export it.
The import remains in the template for webpack, which uses loadEntrypoint()
to inject treeCode as text and needs the binding in scope.
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment