Open rizen opened 5 months ago
Looks like this is due to an entryPoint in esbuild.game.mjs
Yup, changing that fixed it. So now I'm on to seeing if there is a different default the entry point could have, or if that just needs to be added to the cookbook.
Ok, spoke with Moxy about this and removing entryPoints worked for me as well as changing entryPoints to:
entryPoints: ['src/game/game-interface.js'],
Also worked for me.
But rather than documenting that, he would like to investigate something called allowJS which supposedly keeps the guardrails of Typescript working inside of JS.
Here's the start of that conversation in discord: https://discord.com/channels/@me/1186428321471402085/1222248673380012154
in 0.1 you could just rename all the .ts files in src/game to .js and all the .tsx files in src/ui to .jsx and everything worked. However, now in 0.2 it no longer works because it can't find game-interface.ts