Skip to content

Commit

Permalink
build: Reduce bundle size from unnecessary bundeling react/jsx-runtim…
Browse files Browse the repository at this point in the history
…e in embed-react package (calcom#17790)

* Update vite.config.js

* linting fix

---------

Co-authored-by: Hariom <[email protected]>
  • Loading branch information
KlotzJesse and hariombalhara authored Nov 29, 2024
1 parent e8daa4f commit 953a811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/embeds/embed-react/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig({
rollupOptions: {
// make sure to externalize deps that shouldn't be bundled
// into your library
external: ["react", "react-dom"],
external: ["react", "react/jsx-runtime", "react-dom", "react-dom/client"],
output: {
exports: "named",
// Provide global variables to use in the UMD build
Expand Down

0 comments on commit 953a811

Please sign in to comment.