Skip to content

Commit

Permalink
fix: externalize react/jsx-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
roerohan committed Feb 24, 2025
1 parent 66b18da commit f5b1283
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ export default defineConfig(({ mode }) => {
formats: ['es', 'umd'],
},
rollupOptions: {
external: ['react', 'react-dom'],
external: ['react', 'react-dom', 'react/jsx-runtime'],
output: {
globals: {
react: 'React',
'react-dom': 'ReactDom',
'react-dom': 'ReactDOM',
'react/jsx-runtime': 'ReactJSXRuntime',
}
}
},
Expand Down

0 comments on commit f5b1283

Please sign in to comment.