Wondering if I can upload typescript code and use it as is from Playcanvas editor, and if so how?
Thanks
Wondering if I can upload typescript code and use it as is from Playcanvas editor, and if so how?
Thanks
Hi @Yohami_Zerpa,
No, Typescript can’t execute in browsers, it has to be compiled to Javascript. Playcanvas doesn’t provide a tool do so in editor (though it would be great, agreed!).
You can use the playcanvas-sync tool to code in TS locally in your environment and have the compiled JS automatically get uploaded to the editor.
Much appreciated
The new build toolchain the team is using actually supports implementing Typescript support. We just need to be a bit more vocal about it. @Yohami_Zerpa how about creating a feature request? Hmm… wonder what would be the right place… Editor, perhaps?