From 0d7973a34c4dd87d5aeaa9bf501f11f3c7920eb4 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 21 Nov 2023 09:04:57 +0500 Subject: [PATCH] core: fix build error --- packages/core/src/utils/templates/html/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/utils/templates/html/index.ts b/packages/core/src/utils/templates/html/index.ts index 4b3ae8be3..cdc03f404 100644 --- a/packages/core/src/utils/templates/html/index.ts +++ b/packages/core/src/utils/templates/html/index.ts @@ -116,7 +116,8 @@ async function preprocessHTML(templateData: TemplateData) { function hasRequire() { return ( typeof require === "function" && - // eslint-disable-next-line no-undef + // eslint-disable-next-line no-undef, @typescript-eslint/ban-ts-comment + // @ts-ignore (typeof IS_DESKTOP_APP === "undefined" || !IS_DESKTOP_APP) ); }