Skip to content

Commit e78d03a

Browse files
committed
build: update external configuration
1 parent 1ae9019 commit e78d03a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ export default defineConfig({
1212
fileName: 'index',
1313
},
1414
rollupOptions: {
15-
external: ['react'],
15+
external: ['react', 'react-dom', 'react/jsx-runtime'],
1616
output: {
1717
globals: {
1818
react: 'React',
19+
'react-dom': 'ReactDOM',
20+
'react/jsx-runtime': 'ReactJSXRuntime'
1921
},
2022
},
2123
},

0 commit comments

Comments
 (0)