{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel-loader/issues/341","repository_url":"https://api.github.com/repos/babel/babel-loader","labels_url":"https://api.github.com/repos/babel/babel-loader/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel-loader/issues/341/comments","events_url":"https://api.github.com/repos/babel/babel-loader/issues/341/events","html_url":"https://github.com/babel/babel-loader/issues/341","id":193815956,"number":341,"title":"Improper configuration in webpack.config.js does not produce error message","user":{"login":"zrrtcs","id":1638687,"avatar_url":"https://avatars.githubusercontent.com/u/1638687?v=3","gravatar_id":"","url":"https://api.github.com/users/zrrtcs","html_url":"https://github.com/zrrtcs","followers_url":"https://api.github.com/users/zrrtcs/followers","following_url":"https://api.github.com/users/zrrtcs/following{/other_user}","gists_url":"https://api.github.com/users/zrrtcs/gists{/gist_id}","starred_url":"https://api.github.com/users/zrrtcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zrrtcs/subscriptions","organizations_url":"https://api.github.com/users/zrrtcs/orgs","repos_url":"https://api.github.com/users/zrrtcs/repos","events_url":"https://api.github.com/users/zrrtcs/events{/privacy}","received_events_url":"https://api.github.com/users/zrrtcs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-06T16:19:49Z","updated_at":"2016-12-06T16:41:59Z","closed_at":null,"body":"**I'm submitting a bug report**\r\n**I'm submitting a feature request**\r\n\r\n**Webpack Version:**\r\n1.13.3\r\n\r\n**Babel Core Version**:\r\n6.18.2\r\n\r\n**Babel Loader Version**:\r\n6.2.8\r\n\r\n\r\n**Please tell us about your environment:**\r\nOSX 10.12.1\r\n\r\n**Current behavior:**\r\nUnder webpack.config.js, when module.loaders[x].include is given a string instead of an array, webpack will still run but no error message is shown and ES6 code is not transpiled to ES5 properly.\r\n\r\n**Expected/desired behavior:**\r\nA warning indicating module.loaders[x].include should be an array as noted in documentation and halt the execution.\r\n\r\n* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.**\r\n1. webpack.config.js\r\nhttps://gist.github.com/zrrtcs/13aa9a4d6b2bae89b6955a94927470dc\r\n2. run ./node_modules/.bin/webpack\r\n\r\n* **What is the expected behavior?**\r\nIt should display warning/error and halt transpiling\r\n\r\n* **What is the motivation / use case for changing the behavior?**\r\nSpent hours  on why ES6 code is not transpiled to desired ES5"},"comment":{"url":"https://api.github.com/repos/babel/babel-loader/issues/comments/265201044","html_url":"https://github.com/babel/babel-loader/issues/341#issuecomment-265201044","issue_url":"https://api.github.com/repos/babel/babel-loader/issues/341","id":265201044,"user":{"login":"loganfsmyth","id":132260,"avatar_url":"https://avatars.githubusercontent.com/u/132260?v=3","gravatar_id":"","url":"https://api.github.com/users/loganfsmyth","html_url":"https://github.com/loganfsmyth","followers_url":"https://api.github.com/users/loganfsmyth/followers","following_url":"https://api.github.com/users/loganfsmyth/following{/other_user}","gists_url":"https://api.github.com/users/loganfsmyth/gists{/gist_id}","starred_url":"https://api.github.com/users/loganfsmyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganfsmyth/subscriptions","organizations_url":"https://api.github.com/users/loganfsmyth/orgs","repos_url":"https://api.github.com/users/loganfsmyth/repos","events_url":"https://api.github.com/users/loganfsmyth/events{/privacy}","received_events_url":"https://api.github.com/users/loganfsmyth/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T16:41:59Z","updated_at":"2016-12-06T16:41:59Z","body":"Unfortunately this isn't actionable for us.\r\n\r\n1. `include` is a feature of Webpack itself, not `babel-loader`.\r\n2. If Webpack did validate it (which Webpack 2 does, but Webpack 1 does not), the value is allowed to be a string.\r\n\r\nSee the docs here: https://webpack.github.io/docs/configuration.html#module-loaders\r\n\r\n> A condition may be a RegExp (tested against absolute path), a string containing the absolute path, a function(absPath): bool, or an array of one of these combined with “and”.\r\n\r\nSo while a string is allowed, it is matched against an absolute path, so your example would need to be `__dirname + '/src/'`"}}
{"actor":{"display_login":"loganfsmyth"}}