vike-lite-react 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,4 +6,4 @@ declare function onRenderClient(clientOptions: {
6
6
  hydration: boolean;
7
7
  }): Promise<void>;
8
8
  //#endregion
9
- export { onRenderClient as default };
9
+ export { onRenderClient };
@@ -299,4 +299,4 @@ async function onRenderClient(clientOptions) {
299
299
  }
300
300
  }
301
301
  //#endregion
302
- export { onRenderClient as default };
302
+ export { onRenderClient };
package/dist/vite.mjs CHANGED
@@ -13,7 +13,7 @@ function vikeLiteReact({ hydration = true, react: reactOptions } = {}) {
13
13
  if (id === virtualServerId) return resolvedVirtualServerId;
14
14
  },
15
15
  load(id) {
16
- if (id === resolvedVirtualClientId) return `export const onRenderClient = async () => {const mod = await import("vike-lite-react/__internal/client/onRenderClient");return (options) => mod.default({ ...options, hydration: ${hydration} });}`;
16
+ if (id === resolvedVirtualClientId) return `export const onRenderClient=async(options)=>(await import("vike-lite-react/__internal/client/onRenderClient")).onRenderClient({...options,hydration:${hydration}});`;
17
17
  if (id === resolvedVirtualServerId) return `import { onRenderHtml as _onRenderHtml } from 'vike-lite-react/__internal/server/onRenderHtml';export const onRenderHtml = (ctx) => _onRenderHtml({ ...ctx, hydration: ${hydration} });`;
18
18
  }
19
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike-lite-react",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -63,7 +63,7 @@
63
63
  "react": "^19.2.7",
64
64
  "react-dom": "^19.2.7",
65
65
  "tsdown": "^0.22.8",
66
- "vike-lite": "1.15.5",
66
+ "vike-lite": "1.15.6",
67
67
  "vite": "^8.1.5"
68
68
  },
69
69
  "peerDependencies": {