Skip to content

Commit 8c6d962

Browse files
committed
Upgraded @preact/signals-react to 2.0.0
1 parent 23f613f commit 8c6d962

File tree

3 files changed

+534
-600
lines changed

3 files changed

+534
-600
lines changed

packages/react/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@
4848
"publish": "npm publish"
4949
},
5050
"devDependencies": {
51-
"@preact/signals-react": "^1.3.4",
51+
"@babel/cli": "^7.23.9",
52+
"@babel/core": "^7.24.0",
53+
"@preact/signals-react": "^2.0.0",
54+
"@preact/signals-react-transform": "^0.3.0",
5255
"@types/eslint": "^8.44.0",
5356
"@types/react": "^18.2.14",
5457
"@types/react-dom": "^18.2.7",
@@ -64,7 +67,7 @@
6467
"zod": "^3.21.4"
6568
},
6669
"peerDependencies": {
67-
"@preact/signals-react": "^1.0.0",
70+
"@preact/signals-react": "^2.0.0",
6871
"react": "^18.0.0"
6972
}
7073
}

packages/react/vite.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ export default defineConfig(() => {
2222
],
2323
},
2424
},
25-
plugins: [react()],
25+
plugins: [react({
26+
babel: {
27+
plugins: [["module:@preact/signals-react-transform"]]
28+
}
29+
})],
2630
};
2731
});

0 commit comments

Comments
 (0)