mirror of
https://github.com/hanzoai/mdx.git
synced 2026-10-30 18:28:01 +00:00
- Re-export Card, Tabs, Steps, Callout, Accordion from @hanzo/ui/content
- Re-export TypeTable from @hanzo/ui/docs/components
- Re-export defaultMdxComponents for convenience
- Version 14.2.0
Usage: import { Card, Tabs, TypeTable, defaultMdxComponents } from "@hanzo/mdx/components"
40 lines
772 B
TypeScript
40 lines
772 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
const external = [
|
|
'next',
|
|
'typescript',
|
|
'bun',
|
|
/^@hanzo\/docs/,
|
|
/^@hanzo\/ui/,
|
|
'@hanzo/docs-core',
|
|
'@hanzo/docs-mdx-remote',
|
|
];
|
|
|
|
export default defineConfig([
|
|
{
|
|
entry: [
|
|
'./src/{index,bin,components}.ts',
|
|
'./src/{config,next,vite,bun}/index.ts',
|
|
'./src/webpack/{mdx,meta}.ts',
|
|
'./src/node/loader.ts',
|
|
'./src/runtime/*.ts',
|
|
'./src/plugins/*.ts',
|
|
],
|
|
format: 'esm',
|
|
external,
|
|
dts: true,
|
|
target: 'node22',
|
|
},
|
|
{
|
|
entry: {
|
|
// ensure Next.js CJS config compatibility
|
|
// because next.config.ts by default uses CJS
|
|
'./next/index': './src/next/index.ts',
|
|
},
|
|
format: 'cjs',
|
|
external,
|
|
dts: false,
|
|
target: 'node22',
|
|
},
|
|
]);
|