Skip to content

Commit 5a58f0c

Browse files
authored
fix: react 19 compatibility (#90)
1 parent dc0fe95 commit 5a58f0c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-xml-viewer",
3-
"version": "2.0.4",
3+
"version": "2.0.5",
44
"description": "Simple xml viewer component for React",
55
"author": "alissonmbr",
66
"license": "MIT",

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ export default defineConfig({
2727
fileName: (format) => `index.${format}.js`,
2828
},
2929
rollupOptions: {
30-
external: ['react', 'react-dom'],
30+
external: ['react', 'react-dom', 'react/jsx-runtime'],
3131
output: {
3232
globals: {
3333
react: 'React',
3434
'react-dom': 'ReactDOM',
35+
'react/jsx-runtime': 'ReactJsxRuntime',
3536
},
3637
},
3738
},

0 commit comments

Comments
 (0)