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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user