tsup.config.ts 324 B

12345678910111213141516
  1. import { defineConfig } from "tsup";
  2. export default defineConfig({
  3. entry: [ "./src/index.ts" ],
  4. outDir: "./dist/",
  5. format: ["esm"],
  6. platform: "node",
  7. sourcemap: true,
  8. bundle: true,
  9. target: "esnext",
  10. skipNodeModulesBundle: false,
  11. esbuildOptions(options) {
  12. options.bundle = true
  13. },
  14. clean: true,
  15. });