From 8accee657b5dd0c8b67fa2c59b55ff3e2180ea5c Mon Sep 17 00:00:00 2001 From: hsiF <90235641+zrodevkaan@users.noreply.github.com> Date: Tue, 30 Apr 2024 20:41:46 -0500 Subject: [PATCH] compiler goes haywire if there is something else called window --- tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 8e58829..2755649 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,8 +16,8 @@ "jsx": "react" /* Specify what JSX code is generated. */, // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ - "jsxFactory": "window.replugged.common.React.createElement" /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */, - "jsxFragmentFactory": "window.replugged.common.React.Fragment" /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */, + "jsxFactory": "globalThis.replugged.common.React.createElement" /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */, + "jsxFragmentFactory": "globalThis.replugged.common.React.Fragment" /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */, // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */