{"action":"created","issue":{"url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues/43","repository_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs","labels_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues/43/comments","events_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues/43/events","html_url":"https://github.com/rollup/rollup-plugin-commonjs/pull/43","id":135316240,"number":43,"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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-22T04:48:54Z","updated_at":"2016-03-03T17:54:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/pulls/43","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"},"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"},"comment":{"url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues/comments/191886514","html_url":"https://github.com/rollup/rollup-plugin-commonjs/pull/43#issuecomment-191886514","issue_url":"https://api.github.com/repos/rollup/rollup-plugin-commonjs/issues/43","id":191886514,"user":{"login":"eventualbuddha","id":1938,"avatar_url":"https://avatars.githubusercontent.com/u/1938?v=3","gravatar_id":"","url":"https://api.github.com/users/eventualbuddha","html_url":"https://github.com/eventualbuddha","followers_url":"https://api.github.com/users/eventualbuddha/followers","following_url":"https://api.github.com/users/eventualbuddha/following{/other_user}","gists_url":"https://api.github.com/users/eventualbuddha/gists{/gist_id}","starred_url":"https://api.github.com/users/eventualbuddha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eventualbuddha/subscriptions","organizations_url":"https://api.github.com/users/eventualbuddha/orgs","repos_url":"https://api.github.com/users/eventualbuddha/repos","events_url":"https://api.github.com/users/eventualbuddha/events{/privacy}","received_events_url":"https://api.github.com/users/eventualbuddha/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T17:54:54Z","updated_at":"2016-03-03T17:54:54Z","body":" So this will cause rollup to add imports in the source order of the requires.  That isn't guaranteed to be the actual order, but it is better than it was before so :+1:"}}