ti-commonjs
ti-commonjs copied to clipboard
Alloy global namespace in widget tss files
Hi all,
i'm trying to switch to ti-commonjs but apparently my widgets tss files cause some problems. In my tss I access sometimes to Alloy global namespace because some colors are configurable.
It works well with the normal alloy require but this is not working anymore with ti-commonjs, I guess because the global namespace is not anymore accessible (which is normal in commonJs...).
Do you have an idea how I could get round this problem and continue to use global variables in my tss?
Thanks in advance (and thanks for this module).
Because we’re trying to mimic Node.js environment, we should support some sort of a global
object too.
I’ll look into this soon.