Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

tsdown.config.ts

21 lines415 Bytes

1import { defineConfig } from "tsdown";
2​
3const shared = {
4 format: "cjs" as const,
5 outDir: "dist-electron",
6 sourcemap: true,
7 outExtensions: () => ({ js: ".cjs" }),
8};
9​
10export default defineConfig([
11 {
12 ...shared,
13 entry: ["src/main.ts"],
14 clean: true,
15 noExternal: (id) => id.startsWith("@t3tools/") || id.startsWith("effect-acp"),
16 },
17 {
18 ...shared,
19 entry: ["src/preload.ts"],
20 },
21]);