Skip to content

Commit cdba72f

Browse files
committed
Stop bundling react-dom
1 parent 4f11aae commit cdba72f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vite.config.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ export default defineConfig({
1313
},
1414
sourcemap: true,
1515
rollupOptions: {
16-
external: ['react', 'react/jsx-runtime'],
16+
external: ['react', 'react/jsx-runtime', 'react-dom'],
1717
output: {
1818
exports: 'named',
1919
globals: {
2020
react: 'React',
21+
'react-dom': 'react-dom',
2122
'react/jsx-runtime': 'react/jsx-runtime',
2223
},
2324
},

0 commit comments

Comments
 (0)