Skip to content

Commit

Permalink
try this?
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 9, 2023
1 parent f1d501d commit a08b5d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/kit/src/runtime/client/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { set_assets, set_version, set_public_env } from '../shared.js';

/**
* @param {{
* app: Promise<import('./types').SvelteKitApp>;
* app: () => Promise<import('./types').SvelteKitApp>;
* assets: string;
* hydrate: Parameters<import('./types').Client['_hydrate']>[0];
* target: HTMLElement;
Expand All @@ -22,7 +22,7 @@ export async function start({ app, assets, hydrate, target, version }) {
);
}

const client = create_client({ app: await app, target });
const client = create_client({ app: await app(), target });

init({ client });

Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/server/page/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export async function render_response({

if (page_config.csr) {
const opts = [
`app: import(${s(prefixed(client.app.file))})`,
`app: () => import(${s(prefixed(client.app.file))})`,
`assets: ${s(assets)}`,
`target: document.querySelector('[data-sveltekit-hydrate="${target}"]').parentNode`,
`version: ${s(version)}`
Expand Down

0 comments on commit a08b5d8

Please sign in to comment.