summaryrefslogtreecommitdiff
path: root/frontend/tsconfig.json
diff options
context:
space:
mode:
authorAAGaming <aagaming00@protonmail.com>2022-05-30 14:26:54 -0400
committerGitHub <noreply@github.com>2022-05-30 20:26:54 +0200
commit007860f8f771a7ee62b1c384fbe4f741528a75d5 (patch)
treee901ec893500f0531ebb66b5066b2003086570b3 /frontend/tsconfig.json
parent44776b393e984e5968c8b092fade56644c39a4a7 (diff)
downloaddecky-loader-007860f8f771a7ee62b1c384fbe4f741528a75d5.tar.gz
decky-loader-007860f8f771a7ee62b1c384fbe4f741528a75d5.zip
react: Add Router hook & fix typescript issues (#68)
* add rollup watch command, add pnpm lockfile * wait for react * add WIP patcher, window hook, and webpack * fix typescript, fix React, lint, add pnpm to gitignore * actually fix react * show frontend JS errors in console * cleanup * Add Router hook * Remove console.log * Expose routerHook in createPluginAPI Co-authored-by: Jonas Dellinger <jonas@dellinger.dev>
Diffstat (limited to 'frontend/tsconfig.json')
-rw-r--r--frontend/tsconfig.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
index 2901f27f..13b0c350 100644
--- a/frontend/tsconfig.json
+++ b/frontend/tsconfig.json
@@ -3,7 +3,8 @@
"outDir": "dist",
"module": "ESNext",
"target": "ES2020",
- "jsx": "react-jsx",
+ "jsx": "react",
+ "jsxFactory": "window.SP_REACT.createElement",
"declaration": false,
"moduleResolution": "node",
"noUnusedLocals": true,