{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1247","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1247/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1247/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1247/events","html_url":"https://github.com/webpack/webpack/issues/1247","id":94813652,"number":1247,"title":"Loader: implement middlewares","user":{"login":"IngwiePhoenix","id":2893716,"avatar_url":"https://avatars.githubusercontent.com/u/2893716?v=3","gravatar_id":"","url":"https://api.github.com/users/IngwiePhoenix","html_url":"https://github.com/IngwiePhoenix","followers_url":"https://api.github.com/users/IngwiePhoenix/followers","following_url":"https://api.github.com/users/IngwiePhoenix/following{/other_user}","gists_url":"https://api.github.com/users/IngwiePhoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/IngwiePhoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IngwiePhoenix/subscriptions","organizations_url":"https://api.github.com/users/IngwiePhoenix/orgs","repos_url":"https://api.github.com/users/IngwiePhoenix/repos","events_url":"https://api.github.com/users/IngwiePhoenix/events{/privacy}","received_events_url":"https://api.github.com/users/IngwiePhoenix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-13T21:15:50Z","updated_at":"2015-07-22T21:32:18Z","closed_at":null,"body":"I want to extend my `oj-loader` with middlewares - to implement a preprocessor, for instance. It currently has the very basic structure of just an exported function via `module.exports` like loaders should. However, in my case, I would probably change that slightly and export the actual loader function itself as `module.exports.loader` or similar.\r\n\r\nIs it allowed to pass a function to the loader parameter of a definition or what can I do to make this work?"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/123873111","html_url":"https://github.com/webpack/webpack/issues/1247#issuecomment-123873111","issue_url":"https://api.github.com/repos/webpack/webpack/issues/1247","id":123873111,"user":{"login":"sokra","id":1365881,"avatar_url":"https://avatars.githubusercontent.com/u/1365881?v=3","gravatar_id":"","url":"https://api.github.com/users/sokra","html_url":"https://github.com/sokra","followers_url":"https://api.github.com/users/sokra/followers","following_url":"https://api.github.com/users/sokra/following{/other_user}","gists_url":"https://api.github.com/users/sokra/gists{/gist_id}","starred_url":"https://api.github.com/users/sokra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokra/subscriptions","organizations_url":"https://api.github.com/users/sokra/orgs","repos_url":"https://api.github.com/users/sokra/repos","events_url":"https://api.github.com/users/sokra/events{/privacy}","received_events_url":"https://api.github.com/users/sokra/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T21:32:18Z","updated_at":"2015-07-22T21:32:18Z","body":"I don't understand your issue..."}}