Skip to content

Commit 0462552

Browse files
committed
fix: handle inline bundleStrategy
1 parent 049db91 commit 0462552

File tree

1 file changed

+5
-9
lines changed
  • packages/kit/src/runtime/server/page

1 file changed

+5
-9
lines changed

packages/kit/src/runtime/server/page/render.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -531,15 +531,11 @@ export async function render_response({
531531
// `client.app` is a proxy for `bundleStrategy === 'split'`
532532
const boot = client.inline
533533
? `${client.inline.script}
534-
{
535-
const appNS = __sveltekit_${options.version_hash}.app;
536-
const app = appNS.app || appNS;
537-
if (${global}.data && ${global}.__deferred) {
538-
${global}.data = processDeferred(${global}.data, app);
539-
delete ${global}.__deferred;
540-
}
541-
app.start(${args.join(', ')});
542-
}`
534+
if (${global}.data && ${global}.__deferred) {
535+
${global}.data = processDeferred(${global}.data, __sveltekit_${options.version_hash}.app);
536+
delete ${global}.__deferred;
537+
}
538+
__sveltekit_${options.version_hash}.app.start(${args.join(', ')});`
543539
: client.app
544540
? `Promise.all([
545541
import(${s(prefixed(client.start))}),

0 commit comments

Comments
 (0)