{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/loader/issues/54","labels_url":"https://api.github.com/repos/whatwg/loader/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/loader/issues/54/comments","events_url":"https://api.github.com/repos/whatwg/loader/issues/54/events","html_url":"https://github.com/whatwg/loader/issues/54","id":94204588,"number":54,"title":"Node core dev thinks loader will not work for Node","user":{"login":"domenic","id":617481,"avatar_url":"https://avatars.githubusercontent.com/u/617481?v=3","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":32,"created_at":"2015-07-10T03:31:21Z","updated_at":"2015-07-14T17:09:32Z","closed_at":null,"body":"See https://github.com/WebAssembly/design/issues/256 where @trevnorris outlines his issues. I think it would be useful to discuss them in this repo. I am pretty sure they are not quite accurate (for example you can definitely do conditional loading at runtime, by customizing the loader), so it would be good to address such misconceptions and to make sure all use cases are covered."},"comment":{"url":"https://api.github.com/repos/whatwg/loader/issues/comments/121310976","html_url":"https://github.com/whatwg/loader/issues/54#issuecomment-121310976","issue_url":"https://api.github.com/repos/whatwg/loader/issues/54","id":121310976,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T17:09:32Z","updated_at":"2015-07-14T17:09:32Z","body":"Sure, hope it is making some sense. In the example, `require` as called above would only call on CommonJS modules. `nodeLookup` only applies to any CJS module loaded through an ES import or via a dynamic loader import. `nodeLookup` would also apply to all ES modules (based on assuming for simplicity that ES modules follow the current Node resolution algorithm in Node). The `nodeRequire` would only apply to a top-level CJS module (which in turn would load the CJS tree outside of the loader pipeline)."}}