Skip to content

Commit

Permalink
Merge pull request #272 from omnisat/migrate-to-react-19-rc
Browse files Browse the repository at this point in the history
Fix react breaking changes
  • Loading branch information
hathbanger authored Nov 21, 2024
2 parents a4bd3ec + 82ecde3 commit 23e0f53
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 19 deletions.
10 changes: 5 additions & 5 deletions packages/lasereyes-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@
"vite-plugin-ssr": "^0.4.142"
},
"peerDependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react": ">=17",
"react-dom": ">=17"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@types/node": "^22.5.4",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"bip39": "^3.1.0",
"eslint": "^9.9.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"globals": "^15.9.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"typescript": "^5.5.3",
"typescript-eslint": "^8.0.1",
"vite": "^5.4.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/lasereyes-react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import dts from 'vite-plugin-dts'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react() as UserConfig["plugins"],
react() as UserConfig['plugins'],
dts({
insertTypesEntry: true, // Adds an entry point for types, ensuring `types` is correctly referenced in package.json
tsconfigPath: resolve(__dirname, './tsconfig.build.json'),
Expand All @@ -24,7 +24,7 @@ export default defineConfig({
fileName: 'index',
},
rollupOptions: {
external: ['react', 'react-dom'],
external: ['react', 'react-dom', 'react/jsx-runtime'],
output: {
globals: {
react: 'React',
Expand Down
2 changes: 1 addition & 1 deletion packages/lasereyes/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineConfig({
fileName: 'index',
},
rollupOptions: {
external: ['react', 'react-dom'],
external: ['react', 'react-dom', 'react/jsx-runtime'],
output: {
globals: {
react: 'React',
Expand Down
Loading

0 comments on commit 23e0f53

Please sign in to comment.