We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29562fb commit bef2c8fCopy full SHA for bef2c8f
1 file changed
packages/plugin-rsc/examples/basic/src/framework/entry.ssr.tsx
@@ -27,14 +27,11 @@ export async function renderHTML(
27
return React.use(payload).root
28
}
29
30
+ // render html (traditional SSR)
31
const asset = await import.meta.viteRsc.importAsset('./entry.browser.tsx', {
32
entry: true,
33
})
- console.log('[importAsset]', asset.url)
34
-
35
- // render html (traditional SSR)
36
- const bootstrapScriptContent =
37
- await import.meta.viteRsc.loadBootstrapScriptContent('index')
+ const bootstrapScriptContent = `import(${JSON.stringify(asset.url)})`
38
let htmlStream: ReadableStream<Uint8Array>
39
let status: number | undefined
40
try {
0 commit comments