mirror of
https://github.com/langgenius/dify.git
synced 2026-05-08 09:00:22 -04:00
28 lines
445 B
TypeScript
28 lines
445 B
TypeScript
import { defineConfig } from 'vite-plus'
|
|
|
|
export default defineConfig({
|
|
pack: {
|
|
clean: true,
|
|
deps: {
|
|
neverBundle: [
|
|
'@hono/node-server',
|
|
'c12',
|
|
'hono',
|
|
],
|
|
},
|
|
entry: [
|
|
'src/index.ts',
|
|
'src/cli.ts',
|
|
],
|
|
format: ['esm'],
|
|
outDir: 'dist',
|
|
platform: 'node',
|
|
sourcemap: true,
|
|
target: 'node22',
|
|
treeshake: true,
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
},
|
|
})
|