mirror of
https://github.com/hanzoai/ast.git
synced 2026-10-30 18:47:38 +00:00
- AstClient with auto-batching queue (flush interval + max batch) - Browser entry with auto-init from script data-api-key attribute - Astley backward-compat aliases - ESM + CJS + browser bundle via tsup - Published to npm as @hanzo/[email protected]
19 lines
325 B
TypeScript
19 lines
325 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig([
|
|
{
|
|
entry: { index: 'src/index.ts' },
|
|
format: ['esm', 'cjs'],
|
|
dts: true,
|
|
clean: true,
|
|
minify: false,
|
|
},
|
|
{
|
|
entry: { browser: 'src/browser.ts' },
|
|
format: ['esm'],
|
|
dts: true,
|
|
minify: true,
|
|
target: 'esnext',
|
|
},
|
|
]);
|