You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 rivejä
383 B

  1. import { defineConfig } from "tsup";
  2. export default defineConfig([
  3. {
  4. name: "browser",
  5. entry: { "index.browser": "./src/index.ts" },
  6. format: ["esm"],
  7. platform: "browser",
  8. clean: true,
  9. dts: true,
  10. splitting: false
  11. },
  12. {
  13. name: "node",
  14. entry: ["./src/index.ts"],
  15. format: ["esm"],
  16. clean: true,
  17. dts: true,
  18. splitting: false
  19. },
  20. ]);