I want to import certain web3 modules to test them in Godot, but the files generated literally using tsx generate js or jsx files, but currently the version of this Godot build does not import js or jsx files, only mjs.
After seeing this I tried to change the esbuild configurations so that the generated files are .mjs, but most of the time godot crashes or cannot import them
I attach a screenshot of the errors
Edit: When you manage to import it, it generates that error "self" is not defined
Godot build: 4.1-v0.0.17-alpha-20231003
I want to import certain web3 modules to test them in Godot, but the files generated literally using tsx generate js or jsx files, but currently the version of this Godot build does not import js or jsx files, only mjs.
After seeing this I tried to change the esbuild configurations so that the generated files are .mjs, but most of the time godot crashes or cannot import them
I attach a screenshot of the errors
Edit: When you manage to import it, it generates that error "self" is not defined