import { defineConfig } from 'tsdown'
import { tsdownBase } from '@tooling/tsdown-config'

// `@platform-modules/realtime` is a workspace dep but imported type-only — externalized so its
// (empty) runtime barrel is never bundled in. `react`/`react-dom` are peers.
export default defineConfig(
  tsdownBase({ entry: ['src/index.tsx'], neverBundle: ['react', 'react-dom', '@platform-modules/realtime'] }),
)
