Implement a web app target
Opened this issue · 2 comments
baltpeter commented
Necessary changes in package.json
:
"private": true
"source": "src/index.html"
- Get rid of
main
,types
,files
scripts.watch: "parcel"
"browserslist": "> 0.5%, last 2 versions, not dead"
Necessary changes in tsconfig.json
:
"extends": "@baltpeter/tsconfig/tsconfig.preact.json"
baltpeter commented
For Preact, add this to package.json
:
"alias": {
"react": "preact/compat",
"react-dom/test-utils": "preact/test-utils",
"react-dom": "preact/compat",
"react/jsx-runtime": "preact/jsx-runtime"
}