Skip to content

Commit ce12fed

Browse files
committed
Experimental support for React 19 [publish]
1 parent 370e275 commit ce12fed

File tree

15 files changed

+786
-2104
lines changed

15 files changed

+786
-2104
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 3.1.0
4+
5+
- Experimental support for React 19. `_debugSource` [was removed](https://github.com/facebook/react/pull/28265) in React 19. The PR says that tools should lazily generate component stack strace, but I couldn't find a way to use the React devtools globals to generate one for a given Fiber node. I've aksed some React team members about insights on how to make this works, but for now I decided to patch the jsx dev runtime (when serving it) to reinject into Fiber node the source prop added by JSX transform.
6+
37
## 3.0.1
48

59
- Add vite@6 to peer dependency ranges

bun.lock

Lines changed: 568 additions & 0 deletions
Large diffs are not rendered by default.

bun.lockb

-91.9 KB
Binary file not shown.

bunfig.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vite-plugin-react-click-to-component",
33
"type": "module",
4-
"version": "3.0.1",
4+
"version": "3.1.0",
55
"license": "MIT",
66
"scripts": {
77
"postinstall": "cd playground && bun i",
@@ -18,7 +18,7 @@
1818
"trailingComma": "all"
1919
},
2020
"peerDependencies": {
21-
"react": "^18.3.1",
21+
"react": "^18.3.1 || ^19.0.0",
2222
"vite": "^4 || ^5 || ^6"
2323
},
2424
"devDependencies": {

playground/bun.lock

Lines changed: 177 additions & 0 deletions
Large diffs are not rendered by default.

playground/bun.lockb

-29.1 KB
Binary file not shown.

playground/bunfig.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

playground/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
"lint-ci": "eslint --max-warnings 0"
99
},
1010
"dependencies": {
11-
"react": "^18.3.1",
12-
"react-dom": "^18.3.1"
11+
"react": "^19.0.0",
12+
"react-dom": "^19.0.0",
13+
"vite-plugin-restart": "^0.4.2"
1314
},
1415
"devDependencies": {
15-
"@types/react-dom": "^18.3.1",
16+
"@types/react-dom": "^19.0.2",
1617
"@vitejs/plugin-react-swc": "^3.7.2"
1718
}
1819
}

0 commit comments

Comments
 (0)