| 12345678910111213141516171819202122232425262728 |
- import { defineConfig } from 'tsdown'
- /** Build the backend and its path-loaded verifier as separate bundles. */
- export default defineConfig(({ env }) => env?.DSH_BUILD_FACE === 'client' ? [] : [
- {
- entry: ['lib/types/index.js'],
- outDir: 'lib',
- format: ['esm'],
- platform: 'node',
- target: 'es2024',
- fixedExtension: false,
- dts: false,
- clean: false,
- },
- {
- entry: ['lib/types/worker.js'],
- // Fresh verifiers need no host singleton identity. Inline their JavaScript
- // closure to avoid resolving and compiling workspace packages on every open.
- deps: { alwaysBundle: [/^@deepseek-ai\/(?!node-addon-system)/] },
- outDir: 'lib',
- format: ['cjs'],
- platform: 'node',
- target: 'es2024',
- fixedExtension: false,
- dts: false,
- clean: false,
- },
- ])
|