mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-09 02:00:44 +08:00
24 lines
326 B
JavaScript
24 lines
326 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", "semiver"]
|
|
}
|
|
});
|