File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
1212 streamServerRenderedComponent ,
1313 transformRenderStreamChunksToResultObject ,
1414} from './streamServerRenderedReactComponent.ts' ;
15- import loadReactClientManifest from './loadReactClientManifest.ts ' ;
15+ import loadReactClientManifest from './loadReactClientManifest.cts ' ;
1616
1717const stringToStream = ( str : string ) => {
1818 const stream = new PassThrough ( ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export default async function loadReactClientManifest(reactClientManifestFileNam
88 // React client manifest is uploaded to node renderer as an asset.
99 // Renderer copies assets to the same place as the server-bundle.js and rsc-bundle.js.
1010 // Thus, the __dirname of this code is where we can find the manifest file.
11+ // And we need to be .cts to use __dirname
1112 const manifestPath = path . resolve ( __dirname , reactClientManifestFileName ) ;
1213 const loadedReactClientManifest = loadedReactClientManifests . get ( manifestPath ) ;
1314 if ( loadedReactClientManifest ) {
You can’t perform that action at this time.
0 commit comments