ti-commonjs icon indicating copy to clipboard operation
ti-commonjs copied to clipboard

Alloy global namespace in widget tss files

Open vinzentt opened this issue 10 years ago • 1 comments

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).

vinzentt avatar Nov 21 '14 16:11 vinzentt

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.

yuchi avatar Apr 06 '15 14:04 yuchi