Skip to content

Commit

Permalink
fix(vite-react): externalize ['react', 'react-dom', 'react/jsx-runtime']
Browse files Browse the repository at this point in the history
  • Loading branch information
theiliad authored Jan 13, 2025
1 parent 0f2593e commit 40d31ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default defineConfig({
fileName: format => `index.${format === 'es' ? 'm' : 'umd.c'}js`
},
rollupOptions: {
external: ['react', 'react-dom', 'react/jsx-runtime'],
output: {
globals: {
react: 'React'
Expand Down

0 comments on commit 40d31ee

Please # to comment.