mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-01 11:45:36 +08:00
* bundle js client + gen types * changeset * changeset * fix bugs * fix deps * fix deps * format * fix ci * fix types
24 lines
310 B
JavaScript
24 lines
310 B
JavaScript
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
minify: true,
|
|
lib: {
|
|
entry: "src/index.ts",
|
|
formats: ["es"]
|
|
},
|
|
rollupOptions: {
|
|
input: "src/index.ts",
|
|
output: {
|
|
dir: "dist"
|
|
}
|
|
}
|
|
},
|
|
|
|
ssr: {
|
|
target: "node",
|
|
format: "esm",
|
|
noExternal: "ws"
|
|
}
|
|
});
|