I have a javascript file called ui.js.
Inside ui.js is UI setup code.
if (!(\"ontouchstart\" in document.documentElement)) { document.documentEle
But I have not been able to figure out how to do that.
Simply set allowJs to true in your tsconfig.json compilerOptions and then make sure the .js file is included using files/include/exclude etc.
allowJs
compilerOptions
.js
files
include
exclude
I did a video on the subject as well https://www.youtube.com/watch?v=gmKXXI_ck7w