{"action":"created","issue":{"url":"https://api.github.com/repos/bem/bem-components/issues/1286","labels_url":"https://api.github.com/repos/bem/bem-components/issues/1286/labels{/name}","comments_url":"https://api.github.com/repos/bem/bem-components/issues/1286/comments","events_url":"https://api.github.com/repos/bem/bem-components/issues/1286/events","html_url":"https://github.com/bem/bem-components/issues/1286","id":55499441,"number":1286,"title":"BH: Do we really need module.exports wrapper","user":{"login":"tadatuta","id":475746,"avatar_url":"https://avatars.githubusercontent.com/u/475746?v=3","gravatar_id":"","url":"https://api.github.com/users/tadatuta","html_url":"https://github.com/tadatuta","followers_url":"https://api.github.com/users/tadatuta/followers","following_url":"https://api.github.com/users/tadatuta/following{/other_user}","gists_url":"https://api.github.com/users/tadatuta/gists{/gist_id}","starred_url":"https://api.github.com/users/tadatuta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tadatuta/subscriptions","organizations_url":"https://api.github.com/users/tadatuta/orgs","repos_url":"https://api.github.com/users/tadatuta/repos","events_url":"https://api.github.com/users/tadatuta/events{/privacy}","received_events_url":"https://api.github.com/users/tadatuta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bem/bem-components/labels/v3","name":"v3","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"tadatuta","id":475746,"avatar_url":"https://avatars.githubusercontent.com/u/475746?v=3","gravatar_id":"","url":"https://api.github.com/users/tadatuta","html_url":"https://github.com/tadatuta","followers_url":"https://api.github.com/users/tadatuta/followers","following_url":"https://api.github.com/users/tadatuta/following{/other_user}","gists_url":"https://api.github.com/users/tadatuta/gists{/gist_id}","starred_url":"https://api.github.com/users/tadatuta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tadatuta/subscriptions","organizations_url":"https://api.github.com/users/tadatuta/orgs","repos_url":"https://api.github.com/users/tadatuta/repos","events_url":"https://api.github.com/users/tadatuta/events{/privacy}","received_events_url":"https://api.github.com/users/tadatuta/received_events","type":"User","site_admin":false},"milestone":null,"comments":17,"created_at":"2015-01-26T16:00:18Z","updated_at":"2015-05-05T22:18:57Z","closed_at":null,"body":"@mishanga Do we really need `module.exports` wrapper for each BH template?\r\nWe don't have it for BEMHTML templates. Is there real profit or we can just wrap concatenated templates as one of build steps?"},"comment":{"url":"https://api.github.com/repos/bem/bem-components/issues/comments/99249032","html_url":"https://github.com/bem/bem-components/issues/1286#issuecomment-99249032","issue_url":"https://api.github.com/repos/bem/bem-components/issues/1286","id":99249032,"user":{"login":"zxqfox","id":677518,"avatar_url":"https://avatars.githubusercontent.com/u/677518?v=3","gravatar_id":"","url":"https://api.github.com/users/zxqfox","html_url":"https://github.com/zxqfox","followers_url":"https://api.github.com/users/zxqfox/followers","following_url":"https://api.github.com/users/zxqfox/following{/other_user}","gists_url":"https://api.github.com/users/zxqfox/gists{/gist_id}","starred_url":"https://api.github.com/users/zxqfox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zxqfox/subscriptions","organizations_url":"https://api.github.com/users/zxqfox/orgs","repos_url":"https://api.github.com/users/zxqfox/repos","events_url":"https://api.github.com/users/zxqfox/events{/privacy}","received_events_url":"https://api.github.com/users/zxqfox/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T22:18:57Z","updated_at":"2015-05-05T22:18:57Z","body":"@golyshevd Нууу... Я тогда не вижу разницы между текущим и:\r\n```js\r\nrequire.extensions['.bh.js'] = function (module, filename) {\r\n    module.exports = function (bh) {\r\n      eval(fs.readFileSync(filename, 'utf8'));\r\n    };\r\n};\r\n```"}}