From 0abdcc3fd90649699988f78031ea10d25cc6f08d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Charles?= Date: Mon, 27 Jan 2025 10:24:57 +0100 Subject: [PATCH] fix: fix hattip build --- examples/hattip-app/package.json | 2 +- examples/hattip-app/vite.config.ts | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/hattip-app/package.json b/examples/hattip-app/package.json index 3400723..72989eb 100644 --- a/examples/hattip-app/package.json +++ b/examples/hattip-app/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "hattip serve ./hattip-entry.ts --client", - "build": "cross-env NODE_ENV=production hattip build ./hattip-entry.ts --target es2022 --client", + "build": "vike build", "preview": "pnpm run build && cross-env NODE_ENV=production wrangler pages dev", "deploy": "pnpm run build && cross-env NODE_ENV=production wrangler pages deploy", "test": "tsc --noEmit" diff --git a/examples/hattip-app/vite.config.ts b/examples/hattip-app/vite.config.ts index affcc6e..b4330a0 100644 --- a/examples/hattip-app/vite.config.ts +++ b/examples/hattip-app/vite.config.ts @@ -7,5 +7,11 @@ export default defineConfig({ build: { target: "es2022", }, - plugins: [hattip(), vike(), vikeSolid()], + plugins: [ + hattip({ + hattipEntry: "./hattip-entry.ts", + }), + vike(), + vikeSolid(), + ], });