{"action":"opened","number":43,"pull_request":{"url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/pulls/43","id":60125168,"html_url":"https://github.com/rollup/rollup-plugin-commonjs/pull/43","diff_url":"https://github.com/rollup/rollup-plugin-commonjs/pull/43.diff","patch_url":"https://github.com/rollup/rollup-plugin-commonjs/pull/43.patch","issue_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues/43","number":43,"state":"open","locked":false,"title":"Keep the order of execution for require calls","user":{"login":"dralletje","id":767261,"avatar_url":"https://avatars.githubusercontent.com/u/767261?v=3","gravatar_id":"","url":"https://api.github.com/users/dralletje","html_url":"https://github.com/dralletje","followers_url":"https://api.github.com/users/dralletje/followers","following_url":"https://api.github.com/users/dralletje/following{/other_user}","gists_url":"https://api.github.com/users/dralletje/gists{/gist_id}","starred_url":"https://api.github.com/users/dralletje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dralletje/subscriptions","organizations_url":"https://api.github.com/users/dralletje/orgs","repos_url":"https://api.github.com/users/dralletje/repos","events_url":"https://api.github.com/users/dralletje/events{/privacy}","received_events_url":"https://api.github.com/users/dralletje/received_events","type":"User","site_admin":false},"body":"This turned out to be a problem when I tried importing RxJs, as it depends on one required file being executed before another. This PR will make sure the order is maintained, so it at least fixes some cases.\n\nI’ve also added a test; I always wanted to say I added ‘tests’ but I really couldn’t think of another edge case to test ;)\n\nRelevant issue on other repo https://github.com/cyclejs/cycle-core/issues/212","created_at":"2016-02-22T04:48:54Z","updated_at":"2016-02-22T04:48:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/pulls/43/commits","review_comments_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/pulls/43/comments","review_comment_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues/43/comments","statuses_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/statuses/37a40323ccd20b03acdb27a9a2d8f0ebfa21e34a","head":{"label":"dralletje:master","ref":"master","sha":"37a40323ccd20b03acdb27a9a2d8f0ebfa21e34a","user":{"login":"dralletje","id":767261,"avatar_url":"https://avatars.githubusercontent.com/u/767261?v=3","gravatar_id":"","url":"https://api.github.com/users/dralletje","html_url":"https://github.com/dralletje","followers_url":"https://api.github.com/users/dralletje/followers","following_url":"https://api.github.com/users/dralletje/following{/other_user}","gists_url":"https://api.github.com/users/dralletje/gists{/gist_id}","starred_url":"https://api.github.com/users/dralletje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dralletje/subscriptions","organizations_url":"https://api.github.com/users/dralletje/orgs","repos_url":"https://api.github.com/users/dralletje/repos","events_url":"https://api.github.com/users/dralletje/events{/privacy}","received_events_url":"https://api.github.com/users/dralletje/received_events","type":"User","site_admin":false},"repo":{"id":52247061,"name":"rollup-plugin-commonjs","full_name":"dralletje/rollup-plugin-commonjs","owner":{"login":"dralletje","id":767261,"avatar_url":"https://avatars.githubusercontent.com/u/767261?v=3","gravatar_id":"","url":"https://api.github.com/users/dralletje","html_url":"https://github.com/dralletje","followers_url":"https://api.github.com/users/dralletje/followers","following_url":"https://api.github.com/users/dralletje/following{/other_user}","gists_url":"https://api.github.com/users/dralletje/gists{/gist_id}","starred_url":"https://api.github.com/users/dralletje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dralletje/subscriptions","organizations_url":"https://api.github.com/users/dralletje/orgs","repos_url":"https://api.github.com/users/dralletje/repos","events_url":"https://api.github.com/users/dralletje/events{/privacy}","received_events_url":"https://api.github.com/users/dralletje/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dralletje/rollup-plugin-commonjs","description":"Convert CommonJS modules to ES2015","fork":true,"url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs","forks_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/forks","keys_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/teams","hooks_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/hooks","issue_events_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/issues/events{/number}","events_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/events","assignees_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/assignees{/user}","branches_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/branches{/branch}","tags_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/tags","blobs_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/statuses/{sha}","languages_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/languages","stargazers_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/stargazers","contributors_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/contributors","subscribers_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/subscribers","subscription_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/subscription","commits_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/contents/{+path}","compare_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/merges","archive_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/downloads","issues_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/issues{/number}","pulls_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/pulls{/number}","milestones_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/milestones{/number}","notifications_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/labels{/name}","releases_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/releases{/id}","deployments_url":"https://api.github.com/repos/dralletje/rollup-plugin-commonjs/deployments","created_at":"2016-02-22T04:28:21Z","updated_at":"2016-02-22T04:28:23Z","pushed_at":"2016-02-22T04:45:27Z","git_url":"git://github.com/dralletje/rollup-plugin-commonjs.git","ssh_url":"git@github.com:dralletje/rollup-plugin-commonjs.git","clone_url":"https://github.com/dralletje/rollup-plugin-commonjs.git","svn_url":"https://github.com/dralletje/rollup-plugin-commonjs","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rollup:master","ref":"master","sha":"3b227819e77b8ee6bafa4e747ea525053ec6661d","user":{"login":"rollup","id":12554859,"avatar_url":"https://avatars.githubusercontent.com/u/12554859?v=3","gravatar_id":"","url":"https://api.github.com/users/rollup","html_url":"https://github.com/rollup","followers_url":"https://api.github.com/users/rollup/followers","following_url":"https://api.github.com/users/rollup/following{/other_user}","gists_url":"https://api.github.com/users/rollup/gists{/gist_id}","starred_url":"https://api.github.com/users/rollup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rollup/subscriptions","organizations_url":"https://api.github.com/users/rollup/orgs","repos_url":"https://api.github.com/users/rollup/repos","events_url":"https://api.github.com/users/rollup/events{/privacy}","received_events_url":"https://api.github.com/users/rollup/received_events","type":"Organization","site_admin":false},"repo":{"id":44700172,"name":"rollup-plugin-commonjs","full_name":"rollup/rollup-plugin-commonjs","owner":{"login":"rollup","id":12554859,"avatar_url":"https://avatars.githubusercontent.com/u/12554859?v=3","gravatar_id":"","url":"https://api.github.com/users/rollup","html_url":"https://github.com/rollup","followers_url":"https://api.github.com/users/rollup/followers","following_url":"https://api.github.com/users/rollup/following{/other_user}","gists_url":"https://api.github.com/users/rollup/gists{/gist_id}","starred_url":"https://api.github.com/users/rollup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rollup/subscriptions","organizations_url":"https://api.github.com/users/rollup/orgs","repos_url":"https://api.github.com/users/rollup/repos","events_url":"https://api.github.com/users/rollup/events{/privacy}","received_events_url":"https://api.github.com/users/rollup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rollup/rollup-plugin-commonjs","description":"Convert CommonJS modules to ES2015","fork":false,"url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs","forks_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/forks","keys_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/teams","hooks_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/hooks","issue_events_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues/events{/number}","events_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/events","assignees_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/assignees{/user}","branches_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/branches{/branch}","tags_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/tags","blobs_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/statuses/{sha}","languages_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/languages","stargazers_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/stargazers","contributors_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/contributors","subscribers_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/subscribers","subscription_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/subscription","commits_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/contents/{+path}","compare_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/merges","archive_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/downloads","issues_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues{/number}","pulls_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/pulls{/number}","milestones_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/milestones{/number}","notifications_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/labels{/name}","releases_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/releases{/id}","deployments_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/deployments","created_at":"2015-10-21T19:47:04Z","updated_at":"2016-02-19T21:57:40Z","pushed_at":"2016-02-22T04:48:54Z","git_url":"git://github.com/rollup/rollup-plugin-commonjs.git","ssh_url":"git@github.com:rollup/rollup-plugin-commonjs.git","clone_url":"https://github.com/rollup/rollup-plugin-commonjs.git","svn_url":"https://github.com/rollup/rollup-plugin-commonjs","homepage":null,"size":71,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/pulls/43"},"html":{"href":"https://github.com/rollup/rollup-plugin-commonjs/pull/43"},"issue":{"href":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues/43"},"comments":{"href":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/statuses/37a40323ccd20b03acdb27a9a2d8f0ebfa21e34a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":29,"deletions":2,"changed_files":6}}