{"action":"opened","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/1473","labels_url":"https://api.github.com/repos/lodash/lodash/issues/1473/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/1473/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/1473/events","html_url":"https://github.com/lodash/lodash/issues/1473","id":106904363,"number":1473,"title":"[idea] modular architecture","user":{"login":"trusktr","id":297678,"avatar_url":"https://avatars.githubusercontent.com/u/297678?v=3","gravatar_id":"","url":"https://api.github.com/users/trusktr","html_url":"https://github.com/trusktr","followers_url":"https://api.github.com/users/trusktr/followers","following_url":"https://api.github.com/users/trusktr/following{/other_user}","gists_url":"https://api.github.com/users/trusktr/gists{/gist_id}","starred_url":"https://api.github.com/users/trusktr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trusktr/subscriptions","organizations_url":"https://api.github.com/users/trusktr/orgs","repos_url":"https://api.github.com/users/trusktr/repos","events_url":"https://api.github.com/users/trusktr/events{/privacy}","received_events_url":"https://api.github.com/users/trusktr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-17T03:14:08Z","updated_at":"2015-09-17T03:14:08Z","closed_at":null,"body":"It'd be nice if all the functions were requireable/importable without having to import the entire library. f.e.:\r\n\r\n```js\r\nimport isEqual from 'lodash/isEqual'\r\n```\r\n\r\nWe'd get the library by installing with NPM. Doing\r\n\r\n```\r\nimport _ from 'lodash'\r\n```\r\n\r\nwould import everything, like normal. With the use of static analyzers and ES6, we could do\r\n\r\n```js\r\nimport { isEqual, after } as _ from 'lodash'\r\n```\r\n\r\nto import selective things.\r\n\r\nFor this to work properly, each function would have to be stored in it's own file and `import` whatever it needs (or `require` if you prefer CommonJS). There'd be an index.js file which would import everything and export everything, and that what you'd get when you `import _ from 'lodash'`."}}