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 {
12
12
streamServerRenderedComponent ,
13
13
transformRenderStreamChunksToResultObject ,
14
14
} from './streamServerRenderedReactComponent.ts' ;
15
- import loadReactClientManifest from './loadReactClientManifest.ts ' ;
15
+ import loadReactClientManifest from './loadReactClientManifest.cts ' ;
16
16
17
17
const stringToStream = ( str : string ) => {
18
18
const stream = new PassThrough ( ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export default async function loadReactClientManifest(reactClientManifestFileNam
8
8
// React client manifest is uploaded to node renderer as an asset.
9
9
// Renderer copies assets to the same place as the server-bundle.js and rsc-bundle.js.
10
10
// Thus, the __dirname of this code is where we can find the manifest file.
11
+ // And we need to be .cts to use __dirname
11
12
const manifestPath = path . resolve ( __dirname , reactClientManifestFileName ) ;
12
13
const loadedReactClientManifest = loadedReactClientManifests . get ( manifestPath ) ;
13
14
if ( loadedReactClientManifest ) {
You can’t perform that action at this time.
0 commit comments