8 Commits (main)

Author SHA1 Message Date
Alt 061c21a7f9
Merge pull request #16 from Pwntheon/feature/strongly_typed_react
Re-export strongly typed React and ReactDOM from the window object
10 months ago
Pwntheon 59d936d19b Add jsx support, readme instructions for using React 10 months ago
Pwntheon d92ca5f82e Reexport strongly typed React and ReactDOM from the window object
This gives access to the global React and ReactDOM objects in a strongly typed context.

The lib file is only included in the build output if it's actually imported and used somewhere, so it shouldn't pollute people's files unless they actually need it.

Unfortunately, i did not find a way to force vscode autoimport to use the local react.ts file instead of the package from node_modules.
10 months ago
Pwntheon eb10125442 Fix source maps to enable ingame debugging
The inlineSourceMap property was set to true, but due to a missing inlineSources flag, debugging the code ingame led to empty files being shown in the dev tools window.

Adding the inlineSources flag fixes this.

An argument was made that using source maps bloats the save file. This is true. However, if this is a significant issue, the inlineSourceMap flag should also be set to false. Before this fix, the file is already bloated, but ingame debugging is impossible.

To test, make a test script that includes the line `debugger;`. Enable debugging (F12) and run the script. Before this commit, it will show an empty source file. With this commit, it will show the .ts source file as expected.
10 months ago
Alt f06f086ef0
Update tsconfig.json 2 years ago
Alt ca1c3135d0
Allow JS files, so that they get copied to dist 2 years ago
Olivier Gagnon 8423852a8b clean up files 2 years ago
hydroflame 2104e16315 Initial commit 2 years ago