Is there anyone who successfully used either require.js
or one of the commonJS
implementations in apple tv apps? I wanted to give a try to require.js
, but spotted right away that require.js
uses window
object and maybe some other stuff that simply doesn't exist on apple tv. So maybe I should look for other options? How do you guys deal with modules? My predecessor just concatenated bunch of .js files and made a mess with literally tens of thousands lines of code. Incredibly messy.
upd: Still trying to make require.js work but apple tv won't let me have data-main
attribute in script
tag, I guess you can run require.config in the next script that loads right after
upd2: Doesn't work... apple tv doesn't have window
object... Darn you Apple... I'll try to make changes to require.js file itself
No... definitely require.js not suited, even after major refactoring and changing browser specific stuff in the lib to ATV specific, still doesn't work. :(