You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason the global -> AMD format is so gross is because some globals define themselves with a var; like so:
varMooTools={};
This means that we have to run eval() on the source, rather than just inlining it in a module. Other globals that set themselves on the window object will work fine.
This will be a breaking change, so next major release.
The text was updated successfully, but these errors were encountered:
I think it's very easy to see if there is a global var statement. Transpile already does a bunch of stuff like this (like checking for require function calls). Id imagine it would be just the same.
The reason the global -> AMD format is so gross is because some globals define themselves with a var; like so:
This means that we have to run
eval()
on the source, rather than just inlining it in a module. Other globals that set themselves on thewindow
object will work fine.This will be a breaking change, so next major release.
The text was updated successfully, but these errors were encountered: