Skip to content

Commit

Permalink
Fix createServerReference usage in flightServerReferenceProxyLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Sep 26, 2024
1 parent 67e70a0 commit 1537e6c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const flightServerReferenceProxyLoader: webpack.LoaderDefinitionFunction<{
// Because of that, Webpack is able to concatenate the modules and inline the
// reference IDs recursively directly into the module that uses them.
return `\
import { createServerReference } from 'private-next-rsc-action-client-wrapper'
import { createServerReference, callServer, findSourceMapURL } from 'private-next-rsc-action-client-wrapper'
export ${
name === 'default' ? 'default' : `const ${name} =`
} /*#__PURE__*/createServerReference(${JSON.stringify(id)})`
} /*#__PURE__*/createServerReference(${JSON.stringify(id)}, callServer, undefined, findSourceMapURL, ${JSON.stringify(name)})`
}

export default flightServerReferenceProxyLoader

0 comments on commit 1537e6c

Please sign in to comment.