{"action":"created","issue":{"url":"https://api.github.com/repos/igorklopov/enclose/issues/2","labels_url":"https://api.github.com/repos/igorklopov/enclose/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/igorklopov/enclose/issues/2/comments","events_url":"https://api.github.com/repos/igorklopov/enclose/issues/2/events","html_url":"https://github.com/igorklopov/enclose/issues/2","id":56915954,"number":2,"title":"Missing require() dependencies (JSON files)","user":{"login":"simast","id":433527,"avatar_url":"https://avatars.githubusercontent.com/u/433527?v=3","gravatar_id":"","url":"https://api.github.com/users/simast","html_url":"https://github.com/simast","followers_url":"https://api.github.com/users/simast/followers","following_url":"https://api.github.com/users/simast/following{/other_user}","gists_url":"https://api.github.com/users/simast/gists{/gist_id}","starred_url":"https://api.github.com/users/simast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simast/subscriptions","organizations_url":"https://api.github.com/users/simast/orgs","repos_url":"https://api.github.com/users/simast/repos","events_url":"https://api.github.com/users/simast/events{/privacy}","received_events_url":"https://api.github.com/users/simast/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-07T16:10:37Z","updated_at":"2015-02-15T08:12:20Z","closed_at":"2015-02-15T08:12:20Z","body":"It seems `require(...)` calls that don't use simple strings as a module path are not resolved (and not included in the generated binary).\r\n\r\nExample:\r\n\r\n```javascript\r\nvar jsPath = \"../some/path/\";\r\nvar jsModule = require(jsPath + \"test\");\r\n```\r\n\r\nWill throw an unhandled path not found exception. Is there any known workaround for including dependencies that cannot be referenced with plain strings? Could I use the `--config` option and `scripts` callback as a workaround? The docs are a bit lacking on the config option right now, not sure how to approach this."},"comment":{"url":"https://api.github.com/repos/igorklopov/enclose/issues/comments/74408373","html_url":"https://github.com/igorklopov/enclose/issues/2#issuecomment-74408373","issue_url":"https://api.github.com/repos/igorklopov/enclose/issues/2","id":74408373,"user":{"login":"simast","id":433527,"avatar_url":"https://avatars.githubusercontent.com/u/433527?v=3","gravatar_id":"","url":"https://api.github.com/users/simast","html_url":"https://github.com/simast","followers_url":"https://api.github.com/users/simast/followers","following_url":"https://api.github.com/users/simast/following{/other_user}","gists_url":"https://api.github.com/users/simast/gists{/gist_id}","starred_url":"https://api.github.com/users/simast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simast/subscriptions","organizations_url":"https://api.github.com/users/simast/orgs","repos_url":"https://api.github.com/users/simast/repos","events_url":"https://api.github.com/users/simast/events{/privacy}","received_events_url":"https://api.github.com/users/simast/received_events","type":"User","site_admin":false},"created_at":"2015-02-15T08:12:20Z","updated_at":"2015-02-15T08:12:20Z","body":"It works now - thanks! Although I spotted another minor issue with argv - will open a new bug for this. Thanks for the fix."}}