From e69bfc1ef54871f0185f1bc6519b65b216959420 Mon Sep 17 00:00:00 2001 From: aiek Date: Fri, 26 Jul 2024 19:07:47 +0300 Subject: [PATCH] Delete 'build/vencordDep.mts' --- build/vencordDep.mts | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 build/vencordDep.mts diff --git a/build/vencordDep.mts b/build/vencordDep.mts deleted file mode 100644 index 21029c8..0000000 --- a/build/vencordDep.mts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * SPDX-License-Identifier: GPL-3.0 - * Vesktop, a desktop app aiming to give you a snappier Discord Experience - * Copyright (c) 2023 Vendicated and Vencord contributors - */ - -import { globalExternalsWithRegExp } from "@fal-works/esbuild-plugin-global-externals"; - -const names = { - webpack: "Vencord.Webpack", - "webpack/common": "Vencord.Webpack.Common", - utils: "Vencord.Util", - api: "Vencord.Api", - "api/settings": "Vencord", - components: "Vencord.Components" -}; - -export default globalExternalsWithRegExp({ - getModuleInfo(modulePath) { - const path = modulePath.replace("@vencord/types/", ""); - let varName = names[path]; - if (!varName) { - const altMapping = names[path.split("/")[0]]; - if (!altMapping) throw new Error("Unknown module path: " + modulePath); - - varName = - altMapping + - "." + - // @ts-ignore - path.split("/")[1].replaceAll("/", "."); - } - return { - varName, - type: "cjs" - }; - }, - modulePathFilter: /^@vencord\/types.+$/ -});