From 7aeb884390c0cd878dac1ea7a8ec1c960b5eaaff Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 19 Jul 2024 21:32:10 +0200 Subject: [PATCH] i forgot what i changed but im committing anyway --- scripts/build/build.mts | 2 +- scripts/build/buildWeb.mts | 2 +- scripts/build/common.mts | 8 -------- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/scripts/build/build.mts b/scripts/build/build.mts index 4c71c9637..d4c702b44 100755 --- a/scripts/build/build.mts +++ b/scripts/build/build.mts @@ -50,7 +50,7 @@ const nodeCommonOpts = { define: defines } 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 globNativesPlugin: Plugin = { diff --git a/scripts/build/buildWeb.mts b/scripts/build/buildWeb.mts index 5b81b95cc..05ab6df89 100644 --- a/scripts/build/buildWeb.mts +++ b/scripts/build/buildWeb.mts @@ -23,7 +23,7 @@ import { appendFile, mkdir, readdir, readFile, rm, writeFile } from "fs/promises import { join } from "path"; 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} diff --git a/scripts/build/common.mts b/scripts/build/common.mts index c413e5cd0..71c99b117 100644 --- a/scripts/build/common.mts +++ b/scripts/build/common.mts @@ -81,14 +81,6 @@ export async function exists(path: string) { .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 => ({ name: "glob-plugins", setup: build => {