gradio/client/js/vite.config.js
2023-05-14 10:42:02 +01:00

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"]
}
});