From 111f69048280d7f4173dafc3dd731232e5f0b2ee Mon Sep 17 00:00:00 2001 From: ntr Date: Sat, 10 Sep 2022 19:51:49 +1000 Subject: [PATCH] remove preact prerender from build --- client/package.json | 4 ++-- client/src/routes/acp.tsx | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/client/package.json b/client/package.json index d9909ff..4b0b8ef 100644 --- a/client/package.json +++ b/client/package.json @@ -4,7 +4,7 @@ "version": "0.1.0", "license": "MIT", "scripts": { - "build": "preact build", + "build": "preact build --no-prerender", "start": "preact --no-clear watch", "lint": "eslint src" }, @@ -16,7 +16,7 @@ "preact-router": "^3.2.1", "react-feather": "^2.0.10", "react-redux": "^8.0.2", - "redux": "^4.2.0", + "redux": "^4.2.0" }, "devDependencies": { "@babel/plugin-transform-react-jsx-source": "^7.18.6", diff --git a/client/src/routes/acp.tsx b/client/src/routes/acp.tsx index f76fe41..26fd4f0 100644 --- a/client/src/routes/acp.tsx +++ b/client/src/routes/acp.tsx @@ -5,9 +5,11 @@ import { connect } from 'unistore/preact' import http from './../http'; import AcpOffer from './../components/acp.offer'; -import { Status } from './../../../api/src/offers'; +// hmmm +// bundle... +import { Status } from './../../../api/src/offers' -function Item({ item, ws }) { +function Item({ item }) { const statuses = Object.entries(Status).map(([label, value]) => ( ));