{"action":"created","issue":{"url":"https://api.github.com/repos/addyosmani/basket.js/issues/168","repository_url":"https://api.github.com/repos/addyosmani/basket.js","labels_url":"https://api.github.com/repos/addyosmani/basket.js/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/addyosmani/basket.js/issues/168/comments","events_url":"https://api.github.com/repos/addyosmani/basket.js/issues/168/events","html_url":"https://github.com/addyosmani/basket.js/issues/168","id":158762466,"number":168,"title":"Can't require an array of objects","user":{"login":"ofirdagan","id":6453061,"avatar_url":"https://avatars.githubusercontent.com/u/6453061?v=3","gravatar_id":"","url":"https://api.github.com/users/ofirdagan","html_url":"https://github.com/ofirdagan","followers_url":"https://api.github.com/users/ofirdagan/followers","following_url":"https://api.github.com/users/ofirdagan/following{/other_user}","gists_url":"https://api.github.com/users/ofirdagan/gists{/gist_id}","starred_url":"https://api.github.com/users/ofirdagan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ofirdagan/subscriptions","organizations_url":"https://api.github.com/users/ofirdagan/orgs","repos_url":"https://api.github.com/users/ofirdagan/repos","events_url":"https://api.github.com/users/ofirdagan/events{/privacy}","received_events_url":"https://api.github.com/users/ofirdagan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-06T20:04:51Z","updated_at":"2016-06-07T07:33:56Z","closed_at":null,"body":"Hi, according to the [docs page](https://addyosmani.com/basket.js/) the require method can take either an object or an array of objects.\r\n\r\nBut I can't seem to use it with an array. I want to use it with array b/c I'm loading the names of the scripts dynamically and it will be easiest if I'll just send it as an array instead of requiring them one by one.\r\n\r\nIt seems like the trivial use case for multiple files. What am I missing?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/addyosmani/basket.js/issues/comments/224202790","html_url":"https://github.com/addyosmani/basket.js/issues/168#issuecomment-224202790","issue_url":"https://api.github.com/repos/addyosmani/basket.js/issues/168","id":224202790,"user":{"login":"ray007","id":126712,"avatar_url":"https://avatars.githubusercontent.com/u/126712?v=3","gravatar_id":"","url":"https://api.github.com/users/ray007","html_url":"https://github.com/ray007","followers_url":"https://api.github.com/users/ray007/followers","following_url":"https://api.github.com/users/ray007/following{/other_user}","gists_url":"https://api.github.com/users/ray007/gists{/gist_id}","starred_url":"https://api.github.com/users/ray007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ray007/subscriptions","organizations_url":"https://api.github.com/users/ray007/orgs","repos_url":"https://api.github.com/users/ray007/repos","events_url":"https://api.github.com/users/ray007/events{/privacy}","received_events_url":"https://api.github.com/users/ray007/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T07:33:56Z","updated_at":"2016-06-07T07:33:56Z","body":"Try `basket.require.apply(basket, arrayVar);`"}}
{"actor":{"display_login":"ray007"}}