{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-js/issues/603","repository_url":"https://api.github.com/repos/aws/aws-sdk-js","labels_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/603/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/603/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/603/events","html_url":"https://github.com/aws/aws-sdk-js/issues/603","id":76150316,"number":603,"title":"Webpack support","user":{"login":"anthonator","id":420061,"avatar_url":"https://avatars.githubusercontent.com/u/420061?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonator","html_url":"https://github.com/anthonator","followers_url":"https://api.github.com/users/anthonator/followers","following_url":"https://api.github.com/users/anthonator/following{/other_user}","gists_url":"https://api.github.com/users/anthonator/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonator/subscriptions","organizations_url":"https://api.github.com/users/anthonator/orgs","repos_url":"https://api.github.com/users/anthonator/repos","events_url":"https://api.github.com/users/anthonator/events{/privacy}","received_events_url":"https://api.github.com/users/anthonator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-js/labels/Feature%20Request","name":"Feature Request","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":40,"created_at":"2015-05-13T22:42:11Z","updated_at":"2016-08-08T00:48:09Z","closed_at":null,"body":"Has anybody gotten this library to work with webpack? The webpack team recently fixed a [ternary require issue](https://github.com/webpack/webpack/issues/627) which fixed a show stopper.\r\n\r\nI was able to fix an issue with loading a JSON file with the `json-loader`. Now I'm getting:\r\n\r\n```\r\nWARNING in ./~/aws-sdk/lib/util.js\r\nCritical dependencies:\r\n40:30-45 the request of a dependency is an expression\r\n43:11-53 the request of a dependency is an expression\r\n @ ./~/aws-sdk/lib/util.js 40:30-45 43:11-53\r\n\r\nWARNING in ./~/aws-sdk/lib/api_loader.js\r\nCritical dependencies:\r\n13:15-59 the request of a dependency is an expression\r\n104:12-46 the request of a dependency is an expression\r\n108:21-58 the request of a dependency is an expression\r\n114:18-52 the request of a dependency is an expression\r\n```\r\n\r\nWhich is causing the individual services to not be included in the packaged bundle.\r\n\r\nSo doing `new AWS.S3()` returns a `is not a function error`.\r\n\r\nIt looks like you might be able to fix this with the [`ContextReplacementPlugin`](https://github.com/webpack/docs/wiki/list-of-plugins#contextreplacementplugin) but I'm not sure how to configure it properly for this scenario.\r\n\r\nDoes anybody have any examples or anything?"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-js/issues/comments/238120125","html_url":"https://github.com/aws/aws-sdk-js/issues/603#issuecomment-238120125","issue_url":"https://api.github.com/repos/aws/aws-sdk-js/issues/603","id":238120125,"user":{"login":"basarat","id":874898,"avatar_url":"https://avatars.githubusercontent.com/u/874898?v=3","gravatar_id":"","url":"https://api.github.com/users/basarat","html_url":"https://github.com/basarat","followers_url":"https://api.github.com/users/basarat/followers","following_url":"https://api.github.com/users/basarat/following{/other_user}","gists_url":"https://api.github.com/users/basarat/gists{/gist_id}","starred_url":"https://api.github.com/users/basarat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basarat/subscriptions","organizations_url":"https://api.github.com/users/basarat/orgs","repos_url":"https://api.github.com/users/basarat/repos","events_url":"https://api.github.com/users/basarat/events{/privacy}","received_events_url":"https://api.github.com/users/basarat/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T00:48:08Z","updated_at":"2016-08-08T00:48:08Z","body":"@deviantony nope 🌹 You'd need to make a custom build ❤️"}}
{"actor":{"display_login":"basarat"}}