mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 01:52:02 +08:00
26 lines
525 B
TypeScript
26 lines
525 B
TypeScript
import { defineConfig } from "vite-plus";
|
|
|
|
export default defineConfig({
|
|
pack: {
|
|
entry: ["src/index.ts"],
|
|
format: ["esm"],
|
|
dts: true,
|
|
clean: true,
|
|
sourcemap: true,
|
|
// splitting: false,
|
|
treeshake: true,
|
|
outDir: "dist",
|
|
target: false,
|
|
},
|
|
test: {
|
|
environment: "node",
|
|
include: ["**/*.test.ts"],
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "text-summary"],
|
|
include: ["src/**/*.ts"],
|
|
exclude: ["src/**/*.test.*", "src/**/*.spec.*"],
|
|
},
|
|
},
|
|
});
|