{"action":"created","issue":{"url":"https://api.github.com/repos/timoxley/tojson-loader/issues/3","repository_url":"https://api.github.com/repos/timoxley/tojson-loader","labels_url":"https://api.github.com/repos/timoxley/tojson-loader/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/timoxley/tojson-loader/issues/3/comments","events_url":"https://api.github.com/repos/timoxley/tojson-loader/issues/3/events","html_url":"https://github.com/timoxley/tojson-loader/pull/3","id":283522012,"number":3,"title":"Add async execution ability","user":{"login":"romash1408","id":14085271,"avatar_url":"https://avatars0.githubusercontent.com/u/14085271?v=4","gravatar_id":"","url":"https://api.github.com/users/romash1408","html_url":"https://github.com/romash1408","followers_url":"https://api.github.com/users/romash1408/followers","following_url":"https://api.github.com/users/romash1408/following{/other_user}","gists_url":"https://api.github.com/users/romash1408/gists{/gist_id}","starred_url":"https://api.github.com/users/romash1408/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romash1408/subscriptions","organizations_url":"https://api.github.com/users/romash1408/orgs","repos_url":"https://api.github.com/users/romash1408/repos","events_url":"https://api.github.com/users/romash1408/events{/privacy}","received_events_url":"https://api.github.com/users/romash1408/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-20T10:48:55Z","updated_at":"2017-12-21T04:08:05Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/timoxley/tojson-loader/pulls/3","html_url":"https://github.com/timoxley/tojson-loader/pull/3","diff_url":"https://github.com/timoxley/tojson-loader/pull/3.diff","patch_url":"https://github.com/timoxley/tojson-loader/pull/3.patch"},"body":"Closes #2 "},"comment":{"url":"https://api.github.com/repos/timoxley/tojson-loader/issues/comments/353253365","html_url":"https://github.com/timoxley/tojson-loader/pull/3#issuecomment-353253365","issue_url":"https://api.github.com/repos/timoxley/tojson-loader/issues/3","id":353253365,"user":{"login":"romash1408","id":14085271,"avatar_url":"https://avatars0.githubusercontent.com/u/14085271?v=4","gravatar_id":"","url":"https://api.github.com/users/romash1408","html_url":"https://github.com/romash1408","followers_url":"https://api.github.com/users/romash1408/followers","following_url":"https://api.github.com/users/romash1408/following{/other_user}","gists_url":"https://api.github.com/users/romash1408/gists{/gist_id}","starred_url":"https://api.github.com/users/romash1408/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romash1408/subscriptions","organizations_url":"https://api.github.com/users/romash1408/orgs","repos_url":"https://api.github.com/users/romash1408/repos","events_url":"https://api.github.com/users/romash1408/events{/privacy}","received_events_url":"https://api.github.com/users/romash1408/received_events","type":"User","site_admin":false},"created_at":"2017-12-21T04:08:05Z","updated_at":"2017-12-21T04:08:05Z","author_association":"NONE","body":"I see now that there should be ability to throw errors from .json.js for callback er, or Promise catch, becose now unhandled promises looks in console like\r\n![image](https://user-images.githubusercontent.com/14085271/34240028-eeea2ae4-e63d-11e7-9b95-3e0aa2cc5244.png)\r\nAlso, try with console.error gives\r\n![image](https://user-images.githubusercontent.com/14085271/34240055-1bfde2aa-e63e-11e7-9f58-5c2146b5683b.png)\r\nsomething strange in the middle of webpack output, whithout filename and string of error.\r\nMaybe add error argument to resolve callback, so in .json.js it will look like this?\r\n```js\r\nvar fs = require('fs')\r\n\r\nmodule.exports = function(resolve) {\r\n    fs.readDir(__dirname, (err, files) => {\r\n        if (err) return resolve(err)\r\n\r\n        // ...\r\n\r\n        resolve(null, data)\r\n    })\r\n}\r\n```"}}
{"actor":{"display_login":"romash1408"}}