{"action":"created","issue":{"url":"https://api.github.com/repos/lodash/lodash-cli/issues/44","labels_url":"https://api.github.com/repos/lodash/lodash-cli/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash-cli/issues/44/comments","events_url":"https://api.github.com/repos/lodash/lodash-cli/issues/44/events","html_url":"https://github.com/lodash/lodash-cli/issues/44","id":105156326,"number":44,"title":"build monolithic `lodash` to depend on `lodash.*` modules","user":{"login":"ahdinosaur","id":719605,"avatar_url":"https://avatars.githubusercontent.com/u/719605?v=3","gravatar_id":"","url":"https://api.github.com/users/ahdinosaur","html_url":"https://github.com/ahdinosaur","followers_url":"https://api.github.com/users/ahdinosaur/followers","following_url":"https://api.github.com/users/ahdinosaur/following{/other_user}","gists_url":"https://api.github.com/users/ahdinosaur/gists{/gist_id}","starred_url":"https://api.github.com/users/ahdinosaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahdinosaur/subscriptions","organizations_url":"https://api.github.com/users/ahdinosaur/orgs","repos_url":"https://api.github.com/users/ahdinosaur/repos","events_url":"https://api.github.com/users/ahdinosaur/events{/privacy}","received_events_url":"https://api.github.com/users/ahdinosaur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lodash/lodash-cli/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-07T06:38:41Z","updated_at":"2015-09-08T20:33:27Z","closed_at":null,"body":"hey,\r\n\r\nfirst, [thank you for making lodash so modular](https://github.com/lodash/lodash-cli/issues/25). i really appreciate using `lodash.*` modules in my projects, it's [great](https://blog.andyet.com/2015/03/25/amped-down).\r\n\r\nthe only part that's slightly less awesome is trying to use modules from other authors who prefer to depend on the internal modules in the monolithic `lodash` instead of `lodash.*` modules, e.g. [a recent pull request i made to 'gajus/canonical'](https://github.com/gajus/canonical/pull/1).\r\n\r\n> @gajus: if lodash main package did not come as a bundle of all functions and instead had each of them as a \"dependency\", then your proposal to use lodash.* packages would indeed make sense because a bundler would almost always recognise the duplication.\r\n\r\ni'm making an issue here because i think that's an elegant way to achieve module nirvana (developers can use either `lodash.*` modules or internal modules in the monolithic `lodash` and bundlers would see them as being equivalent) so i'm curious your thoughts @jdalton on whether this could be a change you'd support in `lodash`.\r\n\r\ncheers :shell: "},"comment":{"url":"https://api.github.com/repos/lodash/lodash-cli/issues/comments/138691214","html_url":"https://github.com/lodash/lodash-cli/issues/44#issuecomment-138691214","issue_url":"https://api.github.com/repos/lodash/lodash-cli/issues/44","id":138691214,"user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T20:33:27Z","updated_at":"2015-09-08T20:33:27Z","body":"Amazing.\n\n> On Sep 8, 2015, at 21:30, John-David Dalton <notifications@github.com> wrote:\n> \n> We'll be able to address this once npm@3 goes stable as it will auto hoist deps so even if a package has lodash.foo and lodash.bar the dep lodash will be downloaded once.\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}