Files
deepseek-harness/packages/workflow/workflow-workerthread/tsdown.config.ts
2026-07-19 22:13:50 +08:00

30 lines
705 B
TypeScript

import { defineConfig } from 'tsdown'
/**
* Build the engine and worker separately so each inlines shared modules; a
* multi-entry build creates an unlisted chunk. The path-loaded worker is
* CommonJS because pkg's VFS Worker hook compiles it in that format.
*/
export default defineConfig([
{
entry: ['lib/types/index.js', 'lib/types/invariant.js'],
outDir: 'lib',
format: ['esm'],
platform: 'node',
target: 'es2024',
fixedExtension: false,
dts: false,
clean: false,
},
{
entry: ['lib/types/worker.js'],
outDir: 'lib',
format: ['cjs'],
platform: 'node',
target: 'es2024',
fixedExtension: false,
dts: false,
clean: false,
},
])