mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-10 07:03:06 -04:00
Rewrite
This commit is contained in:
commit
af498e7829
11 changed files with 1186 additions and 0 deletions
31
build.mjs
Executable file
31
build.mjs
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/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!");
|
Loading…
Add table
Add a link
Reference in a new issue