Skip to content

Commit 8fc2e97

Browse files
committed
add react to paths
1 parent 78b2d78 commit 8fc2e97

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/js/bun.lockb

355 Bytes
Binary file not shown.

src/js/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"type": "module",
3+
"version": "1.0.0",
34
"scripts": {
45
"format": "prettier --write . && eslint --fix",
56
"check": "prettier --check . && eslint"
@@ -9,7 +10,8 @@
910
"@types/react-dom": "^18.2.18",
1011
"eslint": "^9.13.0",
1112
"eslint-plugin-react": "^7.37.1",
12-
"prettier": "^3.3.3"
13+
"prettier": "^3.3.3",
14+
"bun-types": "^0.5.0"
1315
},
1416
"dependencies": {
1517
"@pyscript/core": "^0.6",

src/js/tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
33
"esModuleInterop": true,
4+
"jsx": "react-jsx",
45
"jsxImportSource": "preact",
56
"target": "esnext",
67
"module": "esnext",
@@ -18,6 +19,10 @@
1819
"resolveJsonModule": true,
1920
"skipLibCheck": false,
2021
"sourceMap": true,
21-
"strict": true
22+
"strict": true,
23+
"paths": {
24+
"react": ["./node_modules/preact/compat"],
25+
"react-dom": ["./node_modules/preact/compat/"]
26+
}
2227
}
2328
}

0 commit comments

Comments
 (0)