import { defineConfig } from "tsup" import { spawn } from "child_process" export default defineConfig({ entry: { index: "src/index.ts" }, splitting: false, clean: true, dts: true, format: ["esm"], name: "debug", minify: "terser", terserOptions: { compress: true, }, async onSuccess() { const process = spawn("npx", ["size-limit"], { shell: true }) process.stdout.on("data", (data) => console.log(data.toString())) }, })