import { defineConfig } from 'tsdown';

export default defineConfig({
  dts: {
    sourcemap: false,
  },
  fixedExtension: false,
  target: 'es2023',
  format: 'esm',
  entry: [
    'src/index.ts',
    'src/preset.ts',
    'src/compile.ts',
    'src/local-md/index.ts',
    'src/local-md/client.ts',
    'src/local-md/dev/vite.ts',
    'src/local-md/dev/ws.ts',
    'src/local-md/dev/react-client.ts',
    'src/remark-heading.ts',
    'src/remark-structure.ts',
    'src/remark-image.ts',
    'src/remark-include.ts',
    'src/rehype-katex.ts',
    'src/remark-code-tab.ts',
    'src/remark-npm.ts',
    'src/remark-ts2js.ts',
    'src/remark-auto-type-table.ts',
    'src/remark-block-id.ts',
    'src/remark-admonition.ts',
    'src/remark-directive-admonition.ts',
    'src/remark-steps.ts',
    'src/remark-mdx-mermaid.ts',
    'src/remark-feedback-block.ts',
    'src/rehype-toc.ts',
    'src/rehype-code.ts',
    'src/remark-llms.ts',
  ],
  exports: true,
  deps: {
    onlyBundle: [],
  },
});
