mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
27 lines
540 B
TypeScript
27 lines
540 B
TypeScript
import { defineConfig } from "tsdown";
|
|
|
|
export default defineConfig({
|
|
entry: [
|
|
"src/index.ts",
|
|
"src/polyfills.ts",
|
|
"src/polyfills/streams.ts",
|
|
"src/polyfills/encoding.ts",
|
|
"src/polyfills/crypto.ts",
|
|
"src/polyfills/dom.ts",
|
|
"src/polyfills/location.ts",
|
|
],
|
|
format: ["esm", "cjs"],
|
|
dts: true,
|
|
sourcemap: true,
|
|
target: "es2022",
|
|
outDir: "dist",
|
|
external: [
|
|
"react",
|
|
"react-native",
|
|
"@ag-ui/client",
|
|
"@copilotkit/react-core",
|
|
"@copilotkit/core",
|
|
"@copilotkit/shared",
|
|
],
|
|
});
|