Janic Duplessis 169cfb5a52 Remove the need for allowTopLevelThis in transform-es2015-modules-commonjs
Summary:
This make the transform behave closer to the standard for modules.

This removes the few places that a top level this was used to refer to the global space. It also clean up the usage of `GLOBAL` to use `global` instead as this is what is used everywhere else in the code base. We still define `GLOBAL` for compatibility with other modules.

**Test plan**
Clear the packager cache to make sure the transforms run again. (node ./local-cli/cli.js start --reset-cache).
Run the Movies example (UIExplorer is broken atm) and make sure there are no errors.
Closes https://github.com/facebook/react-native/pull/6255

Differential Revision: D3037227

Pulled By: mkonicek

fb-gh-sync-id: bcf1350ae7a6e92c77d3a87fc9d6e42eb93cb9b9
fbshipit-source-id: bcf1350ae7a6e92c77d3a87fc9d6e42eb93cb9b9
2016-04-29 16:15:34 -07:00
..
2016-04-27 19:16:32 -07:00
2016-04-27 19:16:32 -07:00
2016-04-27 19:16:32 -07:00
2016-01-21 10:57:26 -08:00
2016-04-29 07:35:22 -07:00
2016-02-27 15:58:35 -08:00
2016-02-27 15:58:35 -08:00
2015-12-15 09:09:32 -08:00
2016-01-15 05:15:31 -08:00
2016-04-25 16:32:20 -07:00
2016-04-25 16:32:20 -07:00
2015-12-15 09:09:32 -08:00
2016-04-29 04:03:24 -07:00