From 81c6e40fec765b0f8403799ff9ee21b78b714ca1 Mon Sep 17 00:00:00 2001 From: Romuald Brillout Date: Mon, 5 Aug 2024 19:14:42 +0200 Subject: [PATCH] minor refactor --- vike-solid/{components => helpers}/clientOnly.tsx | 0 vike-solid/package.json | 4 ++-- vike-solid/rollup.config.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename vike-solid/{components => helpers}/clientOnly.tsx (100%) 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 }],