i forgot what i changed but im committing anyway

This commit is contained in:
Vendicated 2024-07-19 21:32:10 +02:00
parent 44cd30b23a
commit 7aeb884390
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
3 changed files with 2 additions and 10 deletions

View file

@ -50,7 +50,7 @@ const nodeCommonOpts = {
define: defines define: defines
} satisfies BuildOptions; } satisfies BuildOptions;
const sourceMapFooter = s => watch ? "" : `//# sourceMappingURL=vencord://${s}.js.map`; const sourceMapFooter = (s: string) => watch ? "" : `//# sourceMappingURL=vencord://${s}.js.map`;
const sourcemap = watch ? "inline" : "external"; const sourcemap = watch ? "inline" : "external";
const globNativesPlugin: Plugin = { const globNativesPlugin: Plugin = {

View file

@ -23,7 +23,7 @@ import { appendFile, mkdir, readdir, readFile, rm, writeFile } from "fs/promises
import { join } from "path"; import { join } from "path";
import Zip from "zip-local"; import Zip from "zip-local";
import { BUILD_TIMESTAMP, buildOrWatchAll, commonOpts, addBuild, globPlugins, IS_DEV, IS_REPORTER, VERSION } from "./common.mjs"; import { addBuild, BUILD_TIMESTAMP, buildOrWatchAll, commonOpts, globPlugins, IS_DEV, IS_REPORTER, VERSION } from "./common.mjs";
/** /**
* @type {esbuild.BuildOptions} * @type {esbuild.BuildOptions}

View file

@ -81,14 +81,6 @@ export async function exists(path: string) {
.catch(() => false); .catch(() => false);
} }
export const makeAllPackagesExternalPlugin: Plugin = {
name: "make-all-packages-external",
setup(build) {
const filter = /^[^./]|^\.[^./]|^\.\.[^/]/; // Must not start with "/" or "./" or "../"
build.onResolve({ filter }, args => ({ path: args.path, external: true }));
}
};
export const globPlugins: (kind: "web" | "discordDesktop" | "vencordDesktop") => Plugin = kind => ({ export const globPlugins: (kind: "web" | "discordDesktop" | "vencordDesktop") => Plugin = kind => ({
name: "glob-plugins", name: "glob-plugins",
setup: build => { setup: build => {