{"action":"created","issue":{"url":"https://api.github.com/repos/ramda/ramda/issues/1980","repository_url":"https://api.github.com/repos/ramda/ramda","labels_url":"https://api.github.com/repos/ramda/ramda/issues/1980/labels{/name}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1980/comments","events_url":"https://api.github.com/repos/ramda/ramda/issues/1980/events","html_url":"https://github.com/ramda/ramda/issues/1980","id":191051636,"number":1980,"title":"Is it safe to require `src/{function}`?","user":{"login":"yosbelms","id":12763081,"avatar_url":"https://avatars.githubusercontent.com/u/12763081?v=3","gravatar_id":"","url":"https://api.github.com/users/yosbelms","html_url":"https://github.com/yosbelms","followers_url":"https://api.github.com/users/yosbelms/followers","following_url":"https://api.github.com/users/yosbelms/following{/other_user}","gists_url":"https://api.github.com/users/yosbelms/gists{/gist_id}","starred_url":"https://api.github.com/users/yosbelms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosbelms/subscriptions","organizations_url":"https://api.github.com/users/yosbelms/orgs","repos_url":"https://api.github.com/users/yosbelms/repos","events_url":"https://api.github.com/users/yosbelms/events{/privacy}","received_events_url":"https://api.github.com/users/yosbelms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-22T16:16:34Z","updated_at":"2016-11-23T00:48:41Z","closed_at":null,"body":"Actually we can require each function from `src` directory, example:\r\n\r\n```js\r\nvar map = require('ramda/src/map')\r\n```\r\n\r\nThis way to use Ramda gives a lots of benefits when using bundlers (Browserify for example) to build projects for the browsers. Another way to reduce the final bundle size is using a custom build documented in http://ramdajs.com\r\n\r\nHowever, requires from `ramda/src` is not documented in official docs, what makes me think this way could be unsafe because directories structure may change in the future.\r\n\r\nFinally, I would like how prudent is to use this aproach.\r\n"},"comment":{"url":"https://api.github.com/repos/ramda/ramda/issues/comments/262409531","html_url":"https://github.com/ramda/ramda/issues/1980#issuecomment-262409531","issue_url":"https://api.github.com/repos/ramda/ramda/issues/1980","id":262409531,"user":{"login":"CrossEye","id":151263,"avatar_url":"https://avatars.githubusercontent.com/u/151263?v=3","gravatar_id":"","url":"https://api.github.com/users/CrossEye","html_url":"https://github.com/CrossEye","followers_url":"https://api.github.com/users/CrossEye/followers","following_url":"https://api.github.com/users/CrossEye/following{/other_user}","gists_url":"https://api.github.com/users/CrossEye/gists{/gist_id}","starred_url":"https://api.github.com/users/CrossEye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrossEye/subscriptions","organizations_url":"https://api.github.com/users/CrossEye/orgs","repos_url":"https://api.github.com/users/CrossEye/repos","events_url":"https://api.github.com/users/CrossEye/events{/privacy}","received_events_url":"https://api.github.com/users/CrossEye/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T00:48:41Z","updated_at":"2016-11-23T00:48:41Z","body":"This works fine, and is supported... for the moment.  We are planning relatively soon on moving those to the root, so that you can instead simply do\r\n\r\n```js\r\nvar map = require('ramda/map');\r\n```\r\n\r\nWe'll probably keep both styles active for a version while we deprecate the first, though."}}
{"actor":{"display_login":"CrossEye"}}