{"action":"closed","issue":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/4436","repository_url":"https://api.github.com/repos/NodeBB/NodeBB","labels_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/4436/labels{/name}","comments_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/4436/comments","events_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/4436/events","html_url":"https://github.com/NodeBB/NodeBB/issues/4436","id":142534741,"number":4436,"title":"ACP, Question: Is it possible to expose global modules earlier?","user":{"login":"NicolasSiver","id":135263,"avatar_url":"https://avatars.githubusercontent.com/u/135263?v=3","gravatar_id":"","url":"https://api.github.com/users/NicolasSiver","html_url":"https://github.com/NicolasSiver","followers_url":"https://api.github.com/users/NicolasSiver/followers","following_url":"https://api.github.com/users/NicolasSiver/following{/other_user}","gists_url":"https://api.github.com/users/NicolasSiver/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolasSiver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolasSiver/subscriptions","organizations_url":"https://api.github.com/users/NicolasSiver/orgs","repos_url":"https://api.github.com/users/NicolasSiver/repos","events_url":"https://api.github.com/users/NicolasSiver/events{/privacy}","received_events_url":"https://api.github.com/users/NicolasSiver/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-22T03:18:22Z","updated_at":"2016-03-22T12:05:28Z","closed_at":"2016-03-22T12:05:28Z","body":"Hello guys,\r\n\r\nIs it possible to expose objects like `socket`, `app`, etc. - earlier? \r\nNowadays, with ES6, and high-order functions, It's really hard to design ACP application, where global objects will be used and first time accessed in `init` method. \r\n\r\nBy wrapping code in _define_, it means all es6 imports do stuff before `init` method."}}