{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/3320","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/3320/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/3320/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/3320/events","html_url":"https://github.com/webpack/webpack/issues/3320","id":190022956,"number":3320,"title":"resolveLoader.alias does not handle loader query properly.","user":{"login":"Strate","id":392644,"avatar_url":"https://avatars.githubusercontent.com/u/392644?v=3","gravatar_id":"","url":"https://api.github.com/users/Strate","html_url":"https://github.com/Strate","followers_url":"https://api.github.com/users/Strate/followers","following_url":"https://api.github.com/users/Strate/following{/other_user}","gists_url":"https://api.github.com/users/Strate/gists{/gist_id}","starred_url":"https://api.github.com/users/Strate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Strate/subscriptions","organizations_url":"https://api.github.com/users/Strate/orgs","repos_url":"https://api.github.com/users/Strate/repos","events_url":"https://api.github.com/users/Strate/events{/privacy}","received_events_url":"https://api.github.com/users/Strate/received_events","type":"User","site_admin":false},"labels":[{"id":428472954,"url":"https://api.github.com/repos/webpack/webpack/labels/P0:%20Critical","name":"P0: Critical","color":"b60205","default":false},{"id":433394206,"url":"https://api.github.com/repos/webpack/webpack/labels/X1:%20Inspection%20required","name":"X1: Inspection required","color":"fef2c0","default":false},{"id":85532086,"url":"https://api.github.com/repos/webpack/webpack/labels/X5:%20work%20required%20(PR)","name":"X5: work required (PR)","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":{"login":"TheLarkInn","id":3408176,"avatar_url":"https://avatars.githubusercontent.com/u/3408176?v=3","gravatar_id":"","url":"https://api.github.com/users/TheLarkInn","html_url":"https://github.com/TheLarkInn","followers_url":"https://api.github.com/users/TheLarkInn/followers","following_url":"https://api.github.com/users/TheLarkInn/following{/other_user}","gists_url":"https://api.github.com/users/TheLarkInn/gists{/gist_id}","starred_url":"https://api.github.com/users/TheLarkInn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheLarkInn/subscriptions","organizations_url":"https://api.github.com/users/TheLarkInn/orgs","repos_url":"https://api.github.com/users/TheLarkInn/repos","events_url":"https://api.github.com/users/TheLarkInn/events{/privacy}","received_events_url":"https://api.github.com/users/TheLarkInn/received_events","type":"User","site_admin":false},"assignees":[{"login":"TheLarkInn","id":3408176,"avatar_url":"https://avatars.githubusercontent.com/u/3408176?v=3","gravatar_id":"","url":"https://api.github.com/users/TheLarkInn","html_url":"https://github.com/TheLarkInn","followers_url":"https://api.github.com/users/TheLarkInn/followers","following_url":"https://api.github.com/users/TheLarkInn/following{/other_user}","gists_url":"https://api.github.com/users/TheLarkInn/gists{/gist_id}","starred_url":"https://api.github.com/users/TheLarkInn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheLarkInn/subscriptions","organizations_url":"https://api.github.com/users/TheLarkInn/orgs","repos_url":"https://api.github.com/users/TheLarkInn/repos","events_url":"https://api.github.com/users/TheLarkInn/events{/privacy}","received_events_url":"https://api.github.com/users/TheLarkInn/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/webpack/webpack/milestones/9","html_url":"https://github.com/webpack/webpack/milestones/2.1-RC%20Blocking","labels_url":"https://api.github.com/repos/webpack/webpack/milestones/9/labels","id":1851865,"number":9,"title":"2.1-RC Blocking","description":"This milestone marks all bugs/features which are critical for webpack 2's release. ","creator":{"login":"TheLarkInn","id":3408176,"avatar_url":"https://avatars.githubusercontent.com/u/3408176?v=3","gravatar_id":"","url":"https://api.github.com/users/TheLarkInn","html_url":"https://github.com/TheLarkInn","followers_url":"https://api.github.com/users/TheLarkInn/followers","following_url":"https://api.github.com/users/TheLarkInn/following{/other_user}","gists_url":"https://api.github.com/users/TheLarkInn/gists{/gist_id}","starred_url":"https://api.github.com/users/TheLarkInn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheLarkInn/subscriptions","organizations_url":"https://api.github.com/users/TheLarkInn/orgs","repos_url":"https://api.github.com/users/TheLarkInn/repos","events_url":"https://api.github.com/users/TheLarkInn/events{/privacy}","received_events_url":"https://api.github.com/users/TheLarkInn/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":10,"state":"open","created_at":"2016-06-28T02:10:15Z","updated_at":"2016-12-04T23:34:11Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-11-17T11:40:16Z","updated_at":"2016-12-07T04:27:13Z","closed_at":null,"body":"**I'm submitting a bug report**\r\n\r\n\r\n**Webpack version:**\r\n2.1.0-beta.27 \r\n\r\n\r\n**Please tell us about your environment:**\r\nLinux\r\n\r\n\r\n**Current behavior:**\r\nTrying to alias from `loader` to `loader?query` broken\r\n\r\n\r\n**Expected/desired behavior:**\r\nIf i `require('loader!resource')`, when `loader` is aliased to `loader?query`, then require should be transformed to `require('loader?query!resource')`. As for now, webpack tries to resolve `loader?query` as path to js file with loader.\r\n\r\nIt is working in webpack 1.x branch. Is there any workarounds available?"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/265352636","html_url":"https://github.com/webpack/webpack/issues/3320#issuecomment-265352636","issue_url":"https://api.github.com/repos/webpack/webpack/issues/3320","id":265352636,"user":{"login":"khagesh","id":6341906,"avatar_url":"https://avatars.githubusercontent.com/u/6341906?v=3","gravatar_id":"","url":"https://api.github.com/users/khagesh","html_url":"https://github.com/khagesh","followers_url":"https://api.github.com/users/khagesh/followers","following_url":"https://api.github.com/users/khagesh/following{/other_user}","gists_url":"https://api.github.com/users/khagesh/gists{/gist_id}","starred_url":"https://api.github.com/users/khagesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khagesh/subscriptions","organizations_url":"https://api.github.com/users/khagesh/orgs","repos_url":"https://api.github.com/users/khagesh/repos","events_url":"https://api.github.com/users/khagesh/events{/privacy}","received_events_url":"https://api.github.com/users/khagesh/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T04:27:13Z","updated_at":"2016-12-07T04:27:13Z","body":"@sokra After going through files that you mentioned, I think I understand what needs to be done. My understanding is that we need to take `query` out from `alias` and also from `name` and then form a new request which explicitly passes `query` in new request that we create at [line #30](https://github.com/webpack/enhanced-resolve/blob/master/lib/AliasPlugin.js#L30) which should satisfy the requirements that you mentioned in comment [here](https://github.com/webpack/webpack/issues/1513#issuecomment-162828395) \r\n\r\n@TheLarkInn and @sokra If my understanding is correct, can I stab at it and come back with a PR, if no one else is working on it right now?"}}
{"actor":{"display_login":"khagesh"}}