Implements require.globals, to share objects between modules