-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsup.config.ts
More file actions
26 lines (25 loc) · 759 Bytes
/
tsup.config.ts
File metadata and controls
26 lines (25 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { defineConfig } from "tsup";
export default defineConfig({
entry: {
index: "src/index.ts",
native: "src/native.ts",
"non-secure": "src/non-secure.ts",
prefix: "src/prefix.ts",
typed: "src/typed.ts",
validate: "src/validate.ts",
alphabet: "src/alphabet.ts",
},
format: ["esm"],
dts: true,
// Source maps inflate the npm tarball by ~66 kB for minimal benefit —
// minified maps aren't useful for debugging, and the source is on GitHub.
sourcemap: false,
clean: true,
minify: true,
splitting: false,
treeshake: true,
// Each entrypoint should be a standalone bundle with no cross-entrypoint
// imports at runtime. Internal helpers are inlined per-entrypoint.
bundle: true,
outDir: "dist",
});