remove preact prerender from build

This commit is contained in:
ntr committed 2022-09-10 19:51:49 +10:00
1 parent b0572cb63d
commit 111f690482
2 files changed
+6 -4

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@
"version": "0.1.0", "version": "0.1.0",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"build": "preact build", "build": "preact build --no-prerender",
"start": "preact --no-clear watch", "start": "preact --no-clear watch",
"lint": "eslint src" "lint": "eslint src"
}, },
@@ -16,7 +16,7 @@
"preact-router": "^3.2.1", "preact-router": "^3.2.1",
"react-feather": "^2.0.10", "react-feather": "^2.0.10",
"react-redux": "^8.0.2", "react-redux": "^8.0.2",
"redux": "^4.2.0", "redux": "^4.2.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/plugin-transform-react-jsx-source": "^7.18.6", "@babel/plugin-transform-react-jsx-source": "^7.18.6",
+4 -2
View File
@@ -5,9 +5,11 @@ import { connect } from 'unistore/preact'
import http from './../http'; import http from './../http';
import AcpOffer from './../components/acp.offer'; 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]) => ( const statuses = Object.entries(Status).map(([label, value]) => (
<option value={value}>{label}</option> <option value={value}>{label}</option>
)); ));