{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/a95b32cf725e9739a213f2f5f3692a24?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a95b32cf725e9739a213f2f5f3692a24","url":"https://api.github.com/users/shannonmoeller","login":"shannonmoeller","id":155164},"milestone":null,"assignee":null,"updated_at":"2011-11-10T21:50:39Z","labels":[],"comments":7,"closed_at":"2011-11-10T21:37:48Z","url":"https://api.github.com/repos/jrburke/requirejs/issues/140","body":"I have an app.build.js file which uses the has.js integration:\r\n\r\n    ({\r\n        baseUrl: 'src',\r\n        has: { foo: true },\r\n        name: 'foo',\r\n        out: 'build/foo.js'\r\n    })\r\n\r\nWhen optimizing, the dead branches are removed as expected. I'd like to be able to test my project in a browser and get the same result by including a \"has\" property in the require config:\r\n\r\n    <!doctype html>\r\n    <title>test</title>\r\n    <script>\r\n        var require = {\r\n                baseUrl: 'src',\r\n                has: { foo: true },\r\n                deps: ['foo']\r\n            };\r\n    </script>\r\n    <script src=\"src/require.js\"></script>\r\n\r\nCurrently I have to rebuild each time which is slower than I'd like and makes debugging less convenient (line numbers are no longer relevant).","html_url":"https://github.com/jrburke/requirejs/issues/140","title":"Improvement: Support \"has\" in require config.","number":140,"id":2192535,"created_at":"2011-11-09T22:57:02Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/a95b32cf725e9739a213f2f5f3692a24?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a95b32cf725e9739a213f2f5f3692a24","url":"https://api.github.com/users/shannonmoeller","login":"shannonmoeller","id":155164},"updated_at":"2011-11-10T21:50:39Z","url":"https://api.github.com/repos/jrburke/requirejs/issues/comments/2701692","body":"Just read the full discussion. Sounds like a reasonable approach. I had a sinking suspicion that I was barking up the wrong tree anyway. Thanks!","id":2701692,"created_at":"2011-11-10T21:50:39Z"}}