Files
deepseek-harness/packages/client/web-react/tsdown.config.ts
T

33 lines
897 B
TypeScript

import { clientOnly } from '../tsdown.client.ts'
/**
* Root and invariant shapes as SEPARATE single-entry bundles: a multi-entry
* build emits a hash-named shared chunk that the exact `files` whitelist
* cannot publish (same shape as code-runtime-worker/user-approval). The node
* lib is the repo-uniform shape (publint/NodeNext), not an identity-sensitive
* runtime — browser consumers resolve this package through the loader module
* table.
*/
export default clientOnly([
{
entry: { index: 'lib/types/index.js' },
outDir: 'lib',
format: ['esm'],
platform: 'neutral',
target: 'es2024',
fixedExtension: false,
dts: false,
clean: false,
},
{
entry: { invariant: 'lib/types/invariant.js' },
outDir: 'lib',
format: ['esm'],
platform: 'neutral',
target: 'es2024',
fixedExtension: false,
dts: false,
clean: false,
},
])