{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/847","labels_url":"https://api.github.com/repos/webpack/webpack/issues/847/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/847/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/847/events","html_url":"https://github.com/webpack/webpack/issues/847","id":59628580,"number":847,"title":"Issue when spm is used in package.json","user":{"login":"DanielApt","id":52545,"avatar_url":"https://avatars.githubusercontent.com/u/52545?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielApt","html_url":"https://github.com/DanielApt","followers_url":"https://api.github.com/users/DanielApt/followers","following_url":"https://api.github.com/users/DanielApt/following{/other_user}","gists_url":"https://api.github.com/users/DanielApt/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielApt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielApt/subscriptions","organizations_url":"https://api.github.com/users/DanielApt/orgs","repos_url":"https://api.github.com/users/DanielApt/repos","events_url":"https://api.github.com/users/DanielApt/events{/privacy}","received_events_url":"https://api.github.com/users/DanielApt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-03T11:24:16Z","updated_at":"2015-03-05T12:29:11Z","closed_at":null,"body":"I'm loading [*Shepherd*](https://github.com/HubSpot/shepherd) as a github dependency.\r\n\r\nTheir[ `package.json`](https://github.com/HubSpot/shepherd/blob/master/package.json) does not use the `main` property, but instead uses `spm.main`. \r\n\r\nHow can I instruct webpack to look at both the `main` and `spm.main` property inside a `package.json`? I've tried using the [`ResolverPlugin`](https://github.com/webpack/docs/wiki/list-of-plugins#resolverplugin) but have not succeeded in getting this to work.\r\n\r\nAlso should this become default behaviour in the product? I'm not familiar with [*spm*](https://github.com/spmjs/spm), but this could be an issue in the future again."},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/77355723","html_url":"https://github.com/webpack/webpack/issues/847#issuecomment-77355723","issue_url":"https://api.github.com/repos/webpack/webpack/issues/847","id":77355723,"user":{"login":"DanielApt","id":52545,"avatar_url":"https://avatars.githubusercontent.com/u/52545?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielApt","html_url":"https://github.com/DanielApt","followers_url":"https://api.github.com/users/DanielApt/followers","following_url":"https://api.github.com/users/DanielApt/following{/other_user}","gists_url":"https://api.github.com/users/DanielApt/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielApt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielApt/subscriptions","organizations_url":"https://api.github.com/users/DanielApt/orgs","repos_url":"https://api.github.com/users/DanielApt/repos","events_url":"https://api.github.com/users/DanielApt/events{/privacy}","received_events_url":"https://api.github.com/users/DanielApt/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T12:29:11Z","updated_at":"2015-03-05T12:29:11Z","body":"Thanks! Mind if I ask, but why are you placing an array in an array?\r\n\r\nWe could change the `DirectoryDescriptFilePlugin` to accept `[\"spm\", \"main\"] instead of `[[\"spm\", \"main\"]]`\r\n\r\nWhat are your thoughts on that? Happy to give it a shot if you want me to."}}