Skip to content

Commit 9400d54

Browse files
Merge pull request #302 from mxenabled/aw/CT-1977_update_react
build: upgrades to React 19
2 parents 8fd1bb4 + cd26e89 commit 9400d54

3 files changed

Lines changed: 44 additions & 38 deletions

File tree

package-lock.json

Lines changed: 28 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
"access": "public"
1717
},
1818
"overrides": {
19-
19+
"react": "^19.2.4",
20+
"react-dom": "^19.2.4",
21+
"@types/react": "^19.2.14",
22+
"@types/react-dom": "^19.2.3"
2023
},
2124
"scripts": {
2225
"dev": "vite build --watch",
@@ -63,10 +66,10 @@
6366
"js-sha256": "^0.11.0",
6467
"lodash": "^4.17.21",
6568
"numeral": "^2.0.6",
66-
"react": "^18.3.1",
69+
"react": "^19.2.4",
6770
"react-confetti": "^6.1.0",
68-
"react-dom": "^18.3.1",
69-
"react-redux": "^9.1.2",
71+
"react-dom": "^19.2.4",
72+
"react-redux": "^9.2.0",
7073
"rxjs": "^7.8.1",
7174
"uuid": "^11.1.0",
7275
"velocity-animate": "^1.5.2",
@@ -78,8 +81,8 @@
7881
"@testing-library/jest-dom": "^6.4.8",
7982
"@testing-library/react": "^16.0.0",
8083
"@testing-library/user-event": "^14.5.2",
81-
"@types/react": "^18.3.3",
82-
"@types/react-dom": "^18.3.0",
84+
"@types/react": "^19.2.14",
85+
"@types/react-dom": "^19.2.3",
8386
"@types/uuid": "^10.0.0",
8487
"@typescript-eslint/eslint-plugin": "^8.56.1",
8588
"@typescript-eslint/parser": "^8.56.1",

vite.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ export default defineConfig({
2424
fileName: (format) => `index.${format}.js`,
2525
},
2626
rollupOptions: {
27-
external: ['react', 'react-dom'],
27+
external: [
28+
'react',
29+
'react-dom',
30+
'react/jsx-runtime',
31+
'react/jsx-dev-runtime',
32+
'react-dom/client',
33+
],
2834
output: {
2935
globals: {
3036
react: 'React',

0 commit comments

Comments
 (0)