{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/nunjucks/issues/507","labels_url":"https://api.github.com/repos/mozilla/nunjucks/issues/507/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/nunjucks/issues/507/comments","events_url":"https://api.github.com/repos/mozilla/nunjucks/issues/507/events","html_url":"https://github.com/mozilla/nunjucks/issues/507","id":105035253,"number":507,"title":"require('nunjucks') within webpack returns an empty object","user":{"login":"at0g","id":1406770,"avatar_url":"https://avatars.githubusercontent.com/u/1406770?v=3","gravatar_id":"","url":"https://api.github.com/users/at0g","html_url":"https://github.com/at0g","followers_url":"https://api.github.com/users/at0g/followers","following_url":"https://api.github.com/users/at0g/following{/other_user}","gists_url":"https://api.github.com/users/at0g/gists{/gist_id}","starred_url":"https://api.github.com/users/at0g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at0g/subscriptions","organizations_url":"https://api.github.com/users/at0g/orgs","repos_url":"https://api.github.com/users/at0g/repos","events_url":"https://api.github.com/users/at0g/events{/privacy}","received_events_url":"https://api.github.com/users/at0g/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-05T16:13:07Z","updated_at":"2015-09-07T04:29:35Z","closed_at":null,"body":"When requiring nunjucks within a webpack project, an empty object is returned instead of nunjucks.\r\n\r\neg.\r\n\r\n```\r\n// webpack.config.js\r\nmodule.exports = {\r\n    entry: './main.js'\r\n};\r\n```\r\n\r\n```\r\n// main.js\r\nvar nunjucks = require('nunjucks');\r\nconsole.log(nunjucks); // outputs {}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/nunjucks/issues/comments/138184135","html_url":"https://github.com/mozilla/nunjucks/issues/507#issuecomment-138184135","issue_url":"https://api.github.com/repos/mozilla/nunjucks/issues/507","id":138184135,"user":{"login":"carljm","id":61586,"avatar_url":"https://avatars.githubusercontent.com/u/61586?v=3","gravatar_id":"","url":"https://api.github.com/users/carljm","html_url":"https://github.com/carljm","followers_url":"https://api.github.com/users/carljm/followers","following_url":"https://api.github.com/users/carljm/following{/other_user}","gists_url":"https://api.github.com/users/carljm/gists{/gist_id}","starred_url":"https://api.github.com/users/carljm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carljm/subscriptions","organizations_url":"https://api.github.com/users/carljm/orgs","repos_url":"https://api.github.com/users/carljm/repos","events_url":"https://api.github.com/users/carljm/events{/privacy}","received_events_url":"https://api.github.com/users/carljm/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T04:29:35Z","updated_at":"2015-09-07T04:29:35Z","body":"@jgerigmeyer Do you think that's worth adding to the docs somewhere?"}}