GodotJS icon indicating copy to clipboard operation
GodotJS copied to clipboard

Add support for import `.mjs` file

Open NNBnh opened this issue 7 months ago • 2 comments

As the name suggested. I and other need this to work with Gleam gen code. Thanks

NNBnh avatar Jun 12 '25 10:06 NNBnh

I was able to import an mjs file just by setting "allowJs": true in my compilerOptions in tsconfig

randomdevpete avatar Jun 12 '25 11:06 randomdevpete

It's somehow still can't import on Godot side T_T, but I found the workaround of compile all Gleam build result with bun and rename all the file to ts...

NNBnh avatar Jun 12 '25 15:06 NNBnh