mirror of
https://github.com/langgenius/dify.git
synced 2026-11-10 21:35:45 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
21 lines
555 B
TypeScript
21 lines
555 B
TypeScript
import { defineConfig } from 'vite-plus'
|
|
|
|
export default defineConfig({
|
|
pack: {
|
|
clean: true,
|
|
deps: { neverBundle: true },
|
|
// Vite+ 1.4's declaration generator does not detect TypeScript 7.1 beta.
|
|
dts: false,
|
|
entry: ['src/**/*.ts'],
|
|
format: ['esm'],
|
|
onSuccess: 'tsc -p tsconfig.json --emitDeclarationOnly',
|
|
outDir: 'dist',
|
|
fixedExtension: false,
|
|
platform: 'node',
|
|
root: 'src',
|
|
target: 'node24',
|
|
// The mapper hashes its sibling modules to invalidate cached compiler output.
|
|
unbundle: true,
|
|
},
|
|
})
|