mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 11:24:57 -05:00
33 lines
656 B
TypeScript
33 lines
656 B
TypeScript
import { defineConfig } from "tsdown";
|
|
|
|
export default defineConfig([
|
|
{
|
|
dts: { build: true, incremental: true },
|
|
format: ["esm"],
|
|
entry: [
|
|
"./src/index.ts",
|
|
"./src/client.ts",
|
|
"./src/proxy.ts",
|
|
"./src/storage.ts",
|
|
],
|
|
treeshake: true,
|
|
},
|
|
{
|
|
dts: false,
|
|
format: ["esm"],
|
|
entry: ["./src/preload.ts"],
|
|
deps: {
|
|
alwaysBundle: [/^@better-auth\/core(?:\/|$)/, /^better-call(?:\/|$)/],
|
|
onlyBundle: ["better-call"],
|
|
},
|
|
treeshake: true,
|
|
},
|
|
{
|
|
dts: { build: true, incremental: false, emitDtsOnly: true },
|
|
format: ["esm"],
|
|
entry: ["./src/preload.ts"],
|
|
deps: { skipNodeModulesBundle: true },
|
|
treeshake: true,
|
|
},
|
|
]);
|