# Conflicts: # docs/config-catalog.md # docs/event-producer-consumer.md # docs/rfc/implemented/feature/2026-07-05-dynamic-workflows.md # examples/acp-agent/tests/acp.snapshot.ts # packages/code-runtime/code-runtime-worker/tests/built-lib.e2e.ts # packages/code-runtime/code-runtime-worker/tsdown.config.ts
30 lines
679 B
TypeScript
30 lines
679 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'],
|
|
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,
|
|
},
|
|
])
|