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 <[email protected]>
This commit is contained in:
1 parent
e8daa4f92f
commit
953a8119db
1 file changed
+1
-1
@@ -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