|
1 | 1 | import { renderToPipeableStream } from 'react-on-rails-rsc/server.node'; |
2 | 2 | import { PassThrough, Readable } from 'stream'; |
3 | 3 |
|
4 | | -import { RSCRenderParams, StreamRenderState, StreamableComponentResult } from './types'; |
5 | | -import ReactOnRails from './ReactOnRails.full'; |
6 | | -import buildConsoleReplay from './buildConsoleReplay'; |
7 | | -import handleError from './handleError'; |
8 | | -import { convertToError, createResultObject } from './serverRenderUtils'; |
| 4 | +import { RSCRenderParams, StreamRenderState, StreamableComponentResult } from './types/index.ts'; |
| 5 | +import ReactOnRails from './ReactOnRails.full.ts'; |
| 6 | +import buildConsoleReplay from './buildConsoleReplay.ts'; |
| 7 | +import handleError from './handleError.ts'; |
| 8 | +import { convertToError, createResultObject } from './serverRenderUtils.ts'; |
9 | 9 |
|
10 | 10 | import { |
11 | 11 | streamServerRenderedComponent, |
12 | 12 | transformRenderStreamChunksToResultObject, |
13 | | -} from './streamServerRenderedReactComponent'; |
14 | | -import loadReactClientManifest from './loadReactClientManifest'; |
| 13 | +} from './streamServerRenderedReactComponent.ts'; |
| 14 | +import loadReactClientManifest from './loadReactClientManifest.ts'; |
15 | 15 |
|
16 | 16 | const stringToStream = (str: string) => { |
17 | 17 | const stream = new PassThrough(); |
@@ -67,5 +67,5 @@ ReactOnRails.serverRenderRSCReactComponent = (options: RSCRenderParams) => { |
67 | 67 | } |
68 | 68 | }; |
69 | 69 |
|
70 | | -export * from './types'; |
| 70 | +export * from './types/index.ts'; |
71 | 71 | export default ReactOnRails; |
0 commit comments