Add GLOBAL -> SLIM transpiler
m-mujica opened this issue · comments
Manuel Mujica commented
Matthew Phillips commented
The only reason the current global format is that gross is to support this style of global:
var MooTools = {};
Yep, it's for mootools. In transpile@2 we'll drop support for that. However, since slim is a new format we don't need to support it at all there.
So the way to do a global would be to inline the code directly in that function; that's it.
Manuel Mujica commented