{"action":"closed","issue":{"url":"https://api.github.com/repos/rocjs/roc/issues/111","repository_url":"https://api.github.com/repos/rocjs/roc","labels_url":"https://api.github.com/repos/rocjs/roc/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/rocjs/roc/issues/111/comments","events_url":"https://api.github.com/repos/rocjs/roc/issues/111/events","html_url":"https://github.com/rocjs/roc/issues/111","id":162464808,"number":111,"title":"Loading package.json from modules as './package'","user":{"login":"JacobOscarson","id":447216,"avatar_url":"https://avatars.githubusercontent.com/u/447216?v=3","gravatar_id":"","url":"https://api.github.com/users/JacobOscarson","html_url":"https://github.com/JacobOscarson","followers_url":"https://api.github.com/users/JacobOscarson/followers","following_url":"https://api.github.com/users/JacobOscarson/following{/other_user}","gists_url":"https://api.github.com/users/JacobOscarson/gists{/gist_id}","starred_url":"https://api.github.com/users/JacobOscarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacobOscarson/subscriptions","organizations_url":"https://api.github.com/users/JacobOscarson/orgs","repos_url":"https://api.github.com/users/JacobOscarson/repos","events_url":"https://api.github.com/users/JacobOscarson/events{/privacy}","received_events_url":"https://api.github.com/users/JacobOscarson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rocjs/roc/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-27T14:25:44Z","updated_at":"2016-06-27T15:16:26Z","closed_at":"2016-06-27T15:16:26Z","body":"Hello,\r\n\r\n(Trying to use Roc.js /w [enzyme](https://github.com/airbnb/enzyme), using the same sources for browser-based tests as for Node.js based ones)\r\n\r\nI'm having an issue with a module ([cheerio](https://github.com/cheeriojs/cheerio)) that tries to get it's version like this:\r\n\r\n```javascript\r\nversion = require('./package').version\r\n```\r\n(Specifically, [this](https://github.com/cheeriojs/cheerio/issues/836) issue)\r\n\r\nSolutions suggested involves tweaking WebPack config to load the `package.json` file from the name `'./package'`, but you normally don't your own `webpack.config.js` in Roc?\r\n\r\nThe issue is already fixed upstream in Cheerio, but haven't been released to NPM yet, and when that happens, Enzyme will need to update it's dependency too. Is there a quick way to make the Roc WebPack config load modules without the `.json` extension being explicitly set?\r\n\r\nThanks in advance!"}}
{"actor":{"display_login":"dlmr"}}