UNPKG

better-cipher

Version:

A secure encryption library with browser and Node.js support using AES-GCM

27 lines (25 loc) 504 B
import { defineConfig } from "tsup"; export default defineConfig([ { entry: ["src/index.node.ts"], outDir: "dist/node", format: ["esm", "cjs"], dts: true, splitting: false, sourcemap: true, clean: true, platform: "node", target: "node20", }, { entry: ["src/index.browser.ts"], outDir: "dist/browser", format: ["esm"], dts: true, splitting: false, sourcemap: true, clean: true, platform: "browser", target: "esnext", }, ]);