File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
crates/next-custom-transforms/src/transforms Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1809,16 +1809,18 @@ impl<C: Comments> VisitMut for ServerActions<C> {
18091809 return ;
18101810 }
18111811
1812- // Post-pass: Register any exports that weren't already registered during the main pass.
1813- if should_track_exports {
1812+ // Post-pass: For 'use server' files, register any exports that weren't already registered
1813+ // during the main pass. So this inherently excludes self-annotated server
1814+ // functions.
1815+ if in_action_file {
18141816 for ( id, export_name) in & self . export_name_by_local_id {
18151817 if !self . reference_ids_by_export_name . contains_key ( export_name) {
18161818 self . server_reference_exports . push ( ServerReferenceExport {
18171819 ident : Ident :: from ( id. clone ( ) ) ,
18181820 export_name : export_name. clone ( ) ,
18191821 reference_id : self . generate_server_reference_id (
18201822 export_name. as_ref ( ) ,
1821- in_cache_file ,
1823+ false ,
18221824 None ,
18231825 ) ,
18241826 } ) ;
You can’t perform that action at this time.
0 commit comments