Skip to content

Commit d5a9604

Browse files
pngwngradio-pr-bot
andauthored
Fix js client bundle (#8477)
* fix param name * format * fix build * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]>
1 parent 9d2d605 commit d5a9604

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.changeset/clever-windows-swim.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@gradio/client": patch
3+
"gradio": patch
4+
---
5+
6+
fix:Fix js client bundle

client/js/vite.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ export default defineConfig(({ mode }) => {
3333
ssr: {
3434
target: "node",
3535
format: "esm",
36-
noExternal: ["ws", "semiver", "bufferutil", "@gradio/upload"]
36+
noExternal: [
37+
"ws",
38+
"semiver",
39+
"bufferutil",
40+
"@gradio/upload",
41+
"fetch-event-stream"
42+
]
3743
}
3844
};
3945
});

0 commit comments

Comments
 (0)