{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel-loader/issues/168","labels_url":"https://api.github.com/repos/babel/babel-loader/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel-loader/issues/168/comments","events_url":"https://api.github.com/repos/babel/babel-loader/issues/168/events","html_url":"https://github.com/babel/babel-loader/issues/168","id":119256604,"number":168,"title":"How to get object destructuring?","user":{"login":"aj0strow","id":1374327,"avatar_url":"https://avatars.githubusercontent.com/u/1374327?v=3","gravatar_id":"","url":"https://api.github.com/users/aj0strow","html_url":"https://github.com/aj0strow","followers_url":"https://api.github.com/users/aj0strow/followers","following_url":"https://api.github.com/users/aj0strow/following{/other_user}","gists_url":"https://api.github.com/users/aj0strow/gists{/gist_id}","starred_url":"https://api.github.com/users/aj0strow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aj0strow/subscriptions","organizations_url":"https://api.github.com/users/aj0strow/orgs","repos_url":"https://api.github.com/users/aj0strow/repos","events_url":"https://api.github.com/users/aj0strow/events{/privacy}","received_events_url":"https://api.github.com/users/aj0strow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-27T23:10:06Z","updated_at":"2015-11-27T23:23:32Z","closed_at":"2015-11-27T23:23:32Z","body":"Here's my webpack config:\r\n\r\n```js\r\nmodule.exports = {\r\n  entry: {\r\n    src: __dirname + \"/index.js\",\r\n    test: __dirname + \"/test-index.js\"\r\n  },\r\n  output: {\r\n    path: __dirname + \"/dist\",\r\n    filename: \"[name].bundle.js\",\r\n  },\r\n  loaders: [\r\n    {\r\n      test: /\\.js$/,\r\n      exclude: /node_modules/,\r\n      loader: \"babel-loader?presets[]=es2015\",\r\n    }\r\n  ],\r\n  resolve: {\r\n    extensions: [ \"\", \".js\" ],\r\n  }\r\n}\r\n```\r\n\r\nHere's node modules:\r\n\r\n```sh\r\n$ ls node_modules | grep babel\r\nbabel\r\nbabel-core\r\nbabel-loader\r\nbabel-preset-es2015\r\nbabel-register\r\n```\r\n\r\nHere's one line of the output in `dist/test.bundle.js`.\r\n\r\n```js\r\nvar {command, headers, body} = Frame.fromString(packet)\r\n```\r\n\r\nYeah so, it's not working. I was hoping you might know what's missing, like an option, package, dependency version, something else?\r\n\r\nThanks for taking a look. I really appreciate it. \r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel-loader/issues/comments/160226606","html_url":"https://github.com/babel/babel-loader/issues/168#issuecomment-160226606","issue_url":"https://api.github.com/repos/babel/babel-loader/issues/168","id":160226606,"user":{"login":"aj0strow","id":1374327,"avatar_url":"https://avatars.githubusercontent.com/u/1374327?v=3","gravatar_id":"","url":"https://api.github.com/users/aj0strow","html_url":"https://github.com/aj0strow","followers_url":"https://api.github.com/users/aj0strow/followers","following_url":"https://api.github.com/users/aj0strow/following{/other_user}","gists_url":"https://api.github.com/users/aj0strow/gists{/gist_id}","starred_url":"https://api.github.com/users/aj0strow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aj0strow/subscriptions","organizations_url":"https://api.github.com/users/aj0strow/orgs","repos_url":"https://api.github.com/users/aj0strow/repos","events_url":"https://api.github.com/users/aj0strow/events{/privacy}","received_events_url":"https://api.github.com/users/aj0strow/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T23:23:32Z","updated_at":"2015-11-27T23:23:32Z","body":"Wrong configuration, I'm sorry. It should be:\r\n\r\n```js\r\nmodule: {\r\n  loaders: [ {loader} ]\r\n}\r\n```"}}