Skip to content

Commit bef2c8f

Browse files
committed
chore: example
1 parent 29562fb commit bef2c8f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

packages/plugin-rsc/examples/basic/src/framework/entry.ssr.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ export async function renderHTML(
2727
return React.use(payload).root
2828
}
2929

30+
// render html (traditional SSR)
3031
const asset = await import.meta.viteRsc.importAsset('./entry.browser.tsx', {
3132
entry: true,
3233
})
33-
console.log('[importAsset]', asset.url)
34-
35-
// render html (traditional SSR)
36-
const bootstrapScriptContent =
37-
await import.meta.viteRsc.loadBootstrapScriptContent('index')
34+
const bootstrapScriptContent = `import(${JSON.stringify(asset.url)})`
3835
let htmlStream: ReadableStream<Uint8Array>
3936
let status: number | undefined
4037
try {

0 commit comments

Comments
 (0)