@jasonmulligan http://6to5.org/docs/usage/transformers/#self-contained … may be relevant. Automatically rewrites WeakMap/Map/Set/Promise etc to reference a runtime lib.
@jasonmulligan You can't expect `this` to be the global anyway. `this` in node is actually `exports` not `global`.
-
-
@sebmck do you foresee any issue with `(global) => { ... }(global || window);`? it's just trying to normalize node & browser -
@jasonmulligan `typeof global === "undefined" ? global : window` - 2 more replies
New conversation -
-
-
@sebmck that's not it's purpose, it's solely for browser env when modules aren't used; diff code styles of diff peeps; there's 3 mod hooks..Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@sebmck in the code so the dev isn't locked into a paradigmThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 