You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
750 B

2 years ago
#!/usr/bin/node
import esbuild from "esbuild";
await Promise.all([
esbuild.build({
entryPoints: ["src/preload.ts"],
outfile: "dist/preload.js",
format: "cjs",
treeShaking: true,
platform: "node",
target: ["esnext"]
}),
esbuild.build({
entryPoints: ["src/patcher.ts"],
outfile: "dist/patcher.js",
format: "cjs",
target: ["esnext"],
platform: "node"
}),
esbuild.build({
entryPoints: ["src/Vencord.ts"],
outfile: "dist/renderer.js",
format: "iife",
bundle: true,
target: ["esnext"],
footer: { js: "//# sourceURL=VencordRenderer" },
globalName: "Vencord"
})
]);
console.log("Built!");