Skip to content

Commit

Permalink
Fix js client bundle (#8477)
Browse files Browse the repository at this point in the history
* fix param name

* format

* fix build

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
pngwn and gradio-pr-bot committed Jun 6, 2024
1 parent 9d2d605 commit d5a9604
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/clever-windows-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/client": patch
"gradio": patch
---

fix:Fix js client bundle
8 changes: 7 additions & 1 deletion client/js/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ export default defineConfig(({ mode }) => {
ssr: {
target: "node",
format: "esm",
noExternal: ["ws", "semiver", "bufferutil", "@gradio/upload"]
noExternal: [
"ws",
"semiver",
"bufferutil",
"@gradio/upload",
"fetch-event-stream"
]
}
};
});

0 comments on commit d5a9604

Please sign in to comment.