Skip to content

Commit f820204

Browse files
committed
[migrate] render ECharts-JSX with Preact to fix React DOM bug (facebook/react#29037 (comment))
[optimize] update Upstream packages
1 parent ae0cd60 commit f820204

File tree

4 files changed

+855
-930
lines changed

4 files changed

+855
-930
lines changed

package.json

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@editorjs/quote": "^2.7.6",
1515
"browser-fs-access": "^0.38.0",
1616
"browser-unhandled-rejection": "^1.0.2",
17-
"echarts-jsx": "^1.2.1",
17+
"echarts-jsx": "^1.3.1",
1818
"editorjs-html": "^4.0.5",
1919
"idea-react": "^2.0.0-rc.13",
2020
"koajax": "^3.1.2",
@@ -26,19 +26,19 @@
2626
"mobx-react": "^9.2.1",
2727
"mobx-restful": "^2.1.4",
2828
"mobx-restful-table": "^2.5.5",
29-
"react": "^19.2.0",
29+
"preact": "^10.27.2",
30+
"react": "npm:@preact/compat",
3031
"react-bootstrap": "^2.10.10",
3132
"react-bootstrap-editor": "^2.1.1",
32-
"react-dom": "^19.2.0",
33+
"react-dom": "npm:@preact/compat",
3334
"react-editor-js": "^2.1.0",
3435
"react-router-class-tools": "^0.2.1",
3536
"react-router-dom": "^7.9.6",
3637
"web-utility": "^4.6.4"
3738
},
3839
"devDependencies": {
3940
"@babel/runtime": "^7.28.4",
40-
"@cspell/eslint-plugin": "^9.3.1",
41-
"@eslint/compat": "^1.4.1",
41+
"@cspell/eslint-plugin": "^9.3.2",
4242
"@eslint/js": "^9.39.1",
4343
"@parcel/config-default": "~2.16.1",
4444
"@parcel/packager-raw-url": "~2.16.1",
@@ -47,12 +47,12 @@
4747
"@parcel/transformer-webmanifest": "~2.16.1",
4848
"@softonus/prettier-plugin-duplicate-remover": "^1.1.2",
4949
"@types/eslint-config-prettier": "^6.11.3",
50-
"@types/lodash": "^4.17.20",
50+
"@types/lodash": "^4.17.21",
5151
"@types/node": "^22.19.1",
52-
"@types/react": "^19.2.4",
52+
"@types/react": "^19.2.6",
5353
"@types/react-dom": "^19.2.3",
54-
"@typescript-eslint/eslint-plugin": "^8.46.4",
55-
"@typescript-eslint/parser": "^8.46.4",
54+
"@typescript-eslint/eslint-plugin": "^8.47.0",
55+
"@typescript-eslint/parser": "^8.47.0",
5656
"buffer": "^6.0.3",
5757
"eslint": "^9.39.1",
5858
"eslint-config-prettier": "^10.1.8",
@@ -62,7 +62,7 @@
6262
"globals": "^16.5.0",
6363
"husky": "^9.1.7",
6464
"jiti": "^2.6.1",
65-
"lint-staged": "^16.2.6",
65+
"lint-staged": "^16.2.7",
6666
"parcel": "~2.16.1",
6767
"parcel-transformer-mdx": "^0.4.2",
6868
"postcss": "^8.5.6",
@@ -71,8 +71,8 @@
7171
"prismjs": "^1.30.0",
7272
"process": "^0.11.10",
7373
"typescript": "~5.9.3",
74-
"typescript-eslint": "^8.46.4",
75-
"workbox-cli": "^7.3.0"
74+
"typescript-eslint": "^8.47.0",
75+
"workbox-cli": "^7.4.0"
7676
},
7777
"pnpm": {
7878
"onlyBuiltDependencies": [
@@ -82,6 +82,11 @@
8282
"msgpackr-extract"
8383
]
8484
},
85+
"alias": {
86+
"react": "preact/compat",
87+
"react-dom": "preact/compat",
88+
"react/jsx-runtime": "preact/jsx-runtime"
89+
},
8590
"prettier": {
8691
"singleQuote": true,
8792
"trailingComma": "none",

0 commit comments

Comments
 (0)