Files
astro-pocketbase-continue/tsdown.config.ts
2025-10-14 12:02:14 +02:00

20 lines
477 B
TypeScript

import { defineConfig } from "tsdown";
import { peerDependencies } from "./package.json" with { type: "json" };
export default defineConfig((options) => {
const dev = !!options.watch;
return {
entry: ["src/**/*.(ts|js)"],
format: ["esm"],
target: "node24",
unbundle: true,
dts: true,
sourcemap: true,
clean: true,
splitting: false,
minify: !dev,
external: [...Object.keys(peerDependencies)],
tsconfig: "tsconfig.json",
};
});