{"action":"created","issue":{"url":"https://api.github.com/repos/bem/bem-components/issues/1606","labels_url":"https://api.github.com/repos/bem/bem-components/issues/1606/labels{/name}","comments_url":"https://api.github.com/repos/bem/bem-components/issues/1606/comments","events_url":"https://api.github.com/repos/bem/bem-components/issues/1606/events","html_url":"https://github.com/bem/bem-components/issues/1606","id":98404802,"number":1606,"title":"Error in Webpack with bem-components-dist","user":{"login":"Andre-487","id":1009104,"avatar_url":"https://avatars.githubusercontent.com/u/1009104?v=3","gravatar_id":"","url":"https://api.github.com/users/Andre-487","html_url":"https://github.com/Andre-487","followers_url":"https://api.github.com/users/Andre-487/followers","following_url":"https://api.github.com/users/Andre-487/following{/other_user}","gists_url":"https://api.github.com/users/Andre-487/gists{/gist_id}","starred_url":"https://api.github.com/users/Andre-487/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andre-487/subscriptions","organizations_url":"https://api.github.com/users/Andre-487/orgs","repos_url":"https://api.github.com/users/Andre-487/repos","events_url":"https://api.github.com/users/Andre-487/events{/privacy}","received_events_url":"https://api.github.com/users/Andre-487/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-31T14:44:06Z","updated_at":"2015-08-06T19:24:56Z","closed_at":null,"body":"I installed bem-components via bower: `bower i bem/bem-components-dist#v2`\r\n\r\nAnd using it with Webpack like this:\r\n\r\n```js\r\nimport '../bower_components/bem-components-dist/desktop/bem-components.css';\r\nimport '../bower_components/bem-components-dist/desktop/bem-components.dev.js+bh.js';\r\n```\r\n\r\nAnd I got an error:\r\n```\r\nUncaught ReferenceError: modules is not defined\r\n(anonymous function) @ bem-components.dev.js+bh.js:39\r\n(anonymous function) @ bem-components.dev.js+bh.js:3096\r\n(anonymous function) @ app.bundle.js:1247__webpack_require__ @ app.bundle.js:521fn @ app.bundle.js:76\r\n(anonymous function) @ app.js:15\r\n(anonymous function) @ app.bundle.js:899__webpack_require__ @ app.bundle.js:521fn @ app.bundle.js:76\r\n(anonymous function) @ multi_app:3\r\n(anonymous function) @ app.bundle.js:551__webpack_require__ @ app.bundle.js:521\r\n(anonymous function) @ app.bundle.js:544\r\n(anonymous function) @ app.bundle.js:547\r\n```\r\n\r\nMaybe it occurs because of exporting modules via `this` as reference to global object."},"comment":{"url":"https://api.github.com/repos/bem/bem-components/issues/comments/128480242","html_url":"https://github.com/bem/bem-components/issues/1606#issuecomment-128480242","issue_url":"https://api.github.com/repos/bem/bem-components/issues/1606","id":128480242,"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},"created_at":"2015-08-06T19:24:56Z","updated_at":"2015-08-06T19:24:56Z","body":"@Andre-487 can you please check it with `2.3.0` release?"}}