summaryrefslogtreecommitdiff
path: root/tsup.config.ts
diff options
context:
space:
mode:
authorAsko Nõmm <asko@nmm.ee>2025-04-28 22:25:28 +0300
committerAsko Nõmm <asko@nmm.ee>2025-04-28 22:25:28 +0300
commitb08c553749f6619815c171175dd6bcf8ee6ab035 (patch)
tree50fe55703f05a0ae7e9ee1d3503baa444ae27bf4 /tsup.config.ts
parent1c1f54466a00c9cd25b94bc592972e990e18265d (diff)
Refactor for only the Node runtime.
Diffstat (limited to 'tsup.config.ts')
-rw-r--r--tsup.config.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/tsup.config.ts b/tsup.config.ts
new file mode 100644
index 0000000..f845191
--- /dev/null
+++ b/tsup.config.ts
@@ -0,0 +1,10 @@
+import { defineConfig } from "tsup";
+
+export default defineConfig({
+ entry: ["src/flatmatter.ts"],
+ clean: true,
+ format: ["esm", "cjs"],
+ dts: true,
+ treeshake: "smallest",
+ sourcemap: true,
+});