{"action":"reopened","issue":{"url":"https://api.github.com/repos/brunch/brunch/issues/1293","repository_url":"https://api.github.com/repos/brunch/brunch","labels_url":"https://api.github.com/repos/brunch/brunch/issues/1293/labels{/name}","comments_url":"https://api.github.com/repos/brunch/brunch/issues/1293/comments","events_url":"https://api.github.com/repos/brunch/brunch/issues/1293/events","html_url":"https://github.com/brunch/brunch/issues/1293","id":147848179,"number":1293,"title":"adding lodash results in an invalid javascript compilation.","user":{"login":"32bitkid","id":73438,"avatar_url":"https://avatars.githubusercontent.com/u/73438?v=3","gravatar_id":"","url":"https://api.github.com/users/32bitkid","html_url":"https://github.com/32bitkid","followers_url":"https://api.github.com/users/32bitkid/followers","following_url":"https://api.github.com/users/32bitkid/following{/other_user}","gists_url":"https://api.github.com/users/32bitkid/gists{/gist_id}","starred_url":"https://api.github.com/users/32bitkid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/32bitkid/subscriptions","organizations_url":"https://api.github.com/users/32bitkid/orgs","repos_url":"https://api.github.com/users/32bitkid/repos","events_url":"https://api.github.com/users/32bitkid/events{/privacy}","received_events_url":"https://api.github.com/users/32bitkid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-12T19:22:12Z","updated_at":"2016-04-14T16:09:04Z","closed_at":"2016-04-14T16:09:04Z","body":"### Description\r\n\r\nStarting with the default skeleton and adding `lodash` causes the resulting generated javascript to throw the following exception: \r\n\r\n`Uncaught Error: Cannot find module 'base64-js' from 'brunch/node_modules/buffer/index.js'`\r\n\r\ninitialize.js is simply:\r\n\r\n```\r\ndocument.addEventListener('DOMContentLoaded', function() {\r\n  require('lodash/isBuffer');\r\n});\r\n```\r\n\r\n### Environment\r\n\r\n1. Brunch: 2.6.5\r\n2. Node: v5.10.1\r\n3. NPM: 3.8.3\r\n4. Operating system: osx 10.11.3\r\n\r\n### Notes\r\n\r\nThe resulting pack does not exhibit the same behavior  on Brunch <= 2.6.0"}}