From b0c41d556a5d02befc239e42b67503e039b50049 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 22 Dec 2022 18:04:37 +0100 Subject: [PATCH] Improve treeshaking --- scripts/build/inject/react.mjs | 2 +- src/utils/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build/inject/react.mjs b/scripts/build/inject/react.mjs index 1343b5f2..591a25b5 100644 --- a/scripts/build/inject/react.mjs +++ b/scripts/build/inject/react.mjs @@ -16,6 +16,6 @@ * along with this program. If not, see . */ -export const VencordFragment = Symbol.for("react.fragment"); +export const VencordFragment = /* #__PURE__*/ Symbol.for("react.fragment"); export let VencordCreateElement = (...args) => (VencordCreateElement = Vencord.Webpack.Common.React.createElement)(...args); diff --git a/src/utils/constants.ts b/src/utils/constants.ts index aaf6e4df..d15615b6 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -24,7 +24,7 @@ export const REACT_GLOBAL = "Vencord.Webpack.Common.React"; export const VENCORD_USER_AGENT = `Vencord/${gitHash}${gitRemote ? ` (https://github.com/${gitRemote})` : ""}`; // Add yourself here if you made a plugin -export const Devs = Object.freeze({ +export const Devs = /* #__PURE__*/ Object.freeze({ Ven: { name: "Vendicated", id: 343383572805058560n