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) ); }