diff --git a/vike-solid/components/clientOnly.tsx b/vike-solid/helpers/clientOnly.tsx similarity index 100% rename from vike-solid/components/clientOnly.tsx rename to vike-solid/helpers/clientOnly.tsx diff --git a/vike-solid/package.json b/vike-solid/package.json index 865b236..903d494 100644 --- a/vike-solid/package.json +++ b/vike-solid/package.json @@ -41,7 +41,7 @@ "./vite": "./dist/vite-plugin-vike-solid.js", "./usePageContext": "./dist/hooks/usePageContext.js", "./useData": "./dist/hooks/useData.js", - "./clientOnly": "./dist/components/clientOnly.js", + "./clientOnly": "./dist/helpers/clientOnly.js", "./renderer/onRenderHtml": "./dist/renderer/onRenderHtml.js", "./renderer/onRenderClient": "./dist/renderer/onRenderClient.js", "./client": { @@ -66,7 +66,7 @@ "dist/hooks/useData.d.ts" ], "clientOnly": [ - "dist/components/clientOnly.d.ts" + "dist/helpers/clientOnly.d.ts" ] } }, diff --git a/vike-solid/rollup.config.js b/vike-solid/rollup.config.js index 511f7d3..ade079d 100644 --- a/vike-solid/rollup.config.js +++ b/vike-solid/rollup.config.js @@ -9,7 +9,7 @@ export default [ "+config": "./+config.ts", "hooks/usePageContext": "./hooks/usePageContext.tsx", "hooks/useData": "./hooks/useData.tsx", - "components/clientOnly": "./components/clientOnly.tsx", + "helpers/clientOnly": "./helpers/clientOnly.tsx", }, ssr: true, external: ["vike/server", "vike/plugin"], @@ -28,7 +28,7 @@ export default [ "./+config.ts", "./hooks/usePageContext.tsx", "./hooks/useData.tsx", - "./components/clientOnly.tsx", + "./helpers/clientOnly.tsx", "./vite-plugin-vike-solid.ts", ], output: [{ dir: "dist", format: "es", sanitizeFileName: false }],