build: Reduce bundle size from unnecessary bundeling react/jsx-runtime in embed-react package (#17790)

* Update vite.config.js

* linting fix

---------

Co-authored-by: Hariom <hariombalhara@gmail.com>
This commit is contained in:
Jesse Klotz
2024-11-29 22:19:16 +05:30
committed by GitHub
co-authored by Hariom
parent e8daa4f92f
commit 953a8119db
+1 -1
View File
@@ -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