I'm facing different obstacles while trying to use it, and the last one was with imports: unless there is something about TIC-80 I do not know, I need to transpile TS code to one single JS file. Using regular class imports with TS requires me that I should use either amd or System modules. But TIC-80 does not recognize the require function (as transpiled by amd option) nor the System object (used by System option). The message errors are:
ReferenceError: identifier 'define' undefined
and
ReferenceError: identifier 'System' undefined
I've seen a few references of TypeScript being used succesfuly here, so to those that do, I humbly ask: would you mind to describe with details how you do it? Are you having all your code into on single humongous file?
So far I accepted that transpile all my TS files to JS and manually copy and paste it to TIC-80 seemed the best option (since I do not want to deal with movingback and forth all the extra data about tiles, sfx, map, etc under the code on very long comments). If I need a some kind of complex build process and not being able to use imports on external tools takes away a lot of the main appeals of the platform to me...
To avoid sidetracking, I would prefer to not discuss using other languages at least for now.
Thank you very much for any inputs.