File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -272,8 +272,9 @@ export function serverFunctionsPlugin(
272272 } ,
273273 {
274274 name : "solid-start:server-functions/compiler" ,
275- async transform ( code , id , opts ) {
275+ async transform ( code , fileId , opts ) {
276276 const mode = opts ?. ssr ? 'server' : 'client' ;
277+ const [ id ] = fileId . split ( '?' ) ;
277278 if ( ! filter ( id ) ) {
278279 return null ;
279280 }
Original file line number Diff line number Diff line change 1- type HandlerRegistration = [ id : string , callback : Function ] ;
2-
3- const REGISTRATIONS = new Map < string , HandlerRegistration > ( ) ;
1+ const REGISTRATIONS = new Map < string , Function > ( ) ;
42
53export function registerServerFunction < T extends any [ ] , R > (
64 id : string ,
75 callback : ( ...args : T ) => Promise < R > ,
86) {
9- REGISTRATIONS . set ( id , [ id , callback ] ) ;
7+ REGISTRATIONS . set ( id , callback ) ;
108 return callback ;
119}
1210
You can’t perform that action at this time.
0 commit comments