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

tsdown.config.ts

21 lines371 Bytes

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