{"action":"created","issue":{"url":"https://api.github.com/repos/rollup/rollup/issues/428","labels_url":"https://api.github.com/repos/rollup/rollup/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/rollup/rollup/issues/428/comments","events_url":"https://api.github.com/repos/rollup/rollup/issues/428/events","html_url":"https://github.com/rollup/rollup/issues/428","id":125167113,"number":428,"title":"Fail if no topological sort is possible","user":{"login":"Victorystick","id":703602,"avatar_url":"https://avatars.githubusercontent.com/u/703602?v=3","gravatar_id":"","url":"https://api.github.com/users/Victorystick","html_url":"https://github.com/Victorystick","followers_url":"https://api.github.com/users/Victorystick/followers","following_url":"https://api.github.com/users/Victorystick/following{/other_user}","gists_url":"https://api.github.com/users/Victorystick/gists{/gist_id}","starred_url":"https://api.github.com/users/Victorystick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victorystick/subscriptions","organizations_url":"https://api.github.com/users/Victorystick/orgs","repos_url":"https://api.github.com/users/Victorystick/repos","events_url":"https://api.github.com/users/Victorystick/events{/privacy}","received_events_url":"https://api.github.com/users/Victorystick/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rollup/rollup/labels/more%20information%20needed","name":"more information needed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-06T12:23:23Z","updated_at":"2016-01-25T16:32:15Z","closed_at":null,"body":"I've been thinking about [a situation](http://rollupjs.org/#%7B%22options%22%3A%7B%22format%22%3A%22es6%22%2C%22moduleName%22%3A%22myBundle%22%2C%22globals%22%3A%7B%7D%2C%22moduleId%22%3A%22%22%7D%2C%22modules%22%3A%5B%7B%22name%22%3A%22main.js%22%2C%22code%22%3A%22export%20%7B%20foo%20%7D%20from%20'.%2Ffoo'%3B%5Cnexport%20%7B%20bar%20%7D%20from%20'.%2Fbar'%3B%22%7D%2C%7B%22name%22%3A%22foo.js%22%2C%22code%22%3A%22import%20%7B%20bar%20%7D%20from%20'.%2Fbar'%3B%5Cn%5Cnexport%20const%20foo%20%3D%20bar(%20i%20%3D%3E%20i%20)%3B%22%7D%2C%7B%22name%22%3A%22bar.js%22%2C%22code%22%3A%22import%20%7B%20foo%20%7D%20from%20'.%2Ffoo'%3B%5Cn%5Cnexport%20const%20bar%20%3D%20foo(%20i%20%3D%3E%20i%20)%3B%22%7D%5D%7D) (similar to #425) with recursive strong dependencies. There is no topological sort that will make this code run without an immediate `TypeError` failure. We should probably fail and inform the user that we couldn't properly order their code.\r\n\r\n```\r\n┌> A -┐\r\n|     |\r\n└- B <┘\r\n```"},"comment":{"url":"https://api.github.com/repos/rollup/rollup/issues/comments/174569574","html_url":"https://github.com/rollup/rollup/issues/428#issuecomment-174569574","issue_url":"https://api.github.com/repos/rollup/rollup/issues/428","id":174569574,"user":{"login":"rosskevin","id":136564,"avatar_url":"https://avatars.githubusercontent.com/u/136564?v=3","gravatar_id":"","url":"https://api.github.com/users/rosskevin","html_url":"https://github.com/rosskevin","followers_url":"https://api.github.com/users/rosskevin/followers","following_url":"https://api.github.com/users/rosskevin/following{/other_user}","gists_url":"https://api.github.com/users/rosskevin/gists{/gist_id}","starred_url":"https://api.github.com/users/rosskevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosskevin/subscriptions","organizations_url":"https://api.github.com/users/rosskevin/orgs","repos_url":"https://api.github.com/users/rosskevin/repos","events_url":"https://api.github.com/users/rosskevin/events{/privacy}","received_events_url":"https://api.github.com/users/rosskevin/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T16:32:15Z","updated_at":"2016-01-25T16:32:15Z","body":"@eventualbuddha yes that was my coding error, utilizing it within the constructor code.  I don't see a way for any tool to break that cycle."}}