Skip to content

Commit

Permalink
fix: externalize react
Browse files Browse the repository at this point in the history
  • Loading branch information
roerohan committed Feb 24, 2025
1 parent a0a6bad commit b536f0f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ export default defineConfig(({ mode }) => {
name: 'ReactVnc',
formats: ['es', 'umd'],
},
rollupOptions: {
external: ['react', 'react-dom'],
output: {
globals: {
react: 'React',
'react-dom': 'ReactDom',
}
}
},
copyPublicDir: false,
}
}
Expand Down

0 comments on commit b536f0f

Please sign in to comment.