tsup.config.ts 356 B

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