{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1681","labels_url":"https://api.github.com/repos/babel/babel/issues/1681/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1681/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1681/events","html_url":"https://github.com/babel/babel/issues/1681","id":85206963,"number":1681,"title":"[feature request] inline all imports into a single file","user":{"login":"samccone","id":883126,"avatar_url":"https://avatars.githubusercontent.com/u/883126?v=3","gravatar_id":"","url":"https://api.github.com/users/samccone","html_url":"https://github.com/samccone","followers_url":"https://api.github.com/users/samccone/followers","following_url":"https://api.github.com/users/samccone/following{/other_user}","gists_url":"https://api.github.com/users/samccone/gists{/gist_id}","starred_url":"https://api.github.com/users/samccone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samccone/subscriptions","organizations_url":"https://api.github.com/users/samccone/orgs","repos_url":"https://api.github.com/users/samccone/repos","events_url":"https://api.github.com/users/samccone/events{/privacy}","received_events_url":"https://api.github.com/users/samccone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-04T17:56:59Z","updated_at":"2015-06-04T18:24:27Z","closed_at":null,"body":"#### Use case: \r\n\r\nYou create a library/tool that has dependencies.\r\nYou want to distribute your library in a UMD format (and have it work in the browser without a user having to use something like system.js to polyfill \"require\")\r\n\r\n#### Current solution:\r\n\r\nUsing browserify to do the inlining work or create a custom build system to support this.\r\n\r\n#### Ideal solution:\r\n\r\nA flag to enable this joining inside of babel.\r\n\r\n#### Why does this belong in core?\r\n\r\nIf you support exporting to UMD, then for it to be truly universal inlining the dependencies is essential. \r\n\r\nThanks :space_invader: "},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/108998520","html_url":"https://github.com/babel/babel/issues/1681#issuecomment-108998520","issue_url":"https://api.github.com/repos/babel/babel/issues/1681","id":108998520,"user":{"login":"zertosh","id":830952,"avatar_url":"https://avatars.githubusercontent.com/u/830952?v=3","gravatar_id":"","url":"https://api.github.com/users/zertosh","html_url":"https://github.com/zertosh","followers_url":"https://api.github.com/users/zertosh/followers","following_url":"https://api.github.com/users/zertosh/following{/other_user}","gists_url":"https://api.github.com/users/zertosh/gists{/gist_id}","starred_url":"https://api.github.com/users/zertosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zertosh/subscriptions","organizations_url":"https://api.github.com/users/zertosh/orgs","repos_url":"https://api.github.com/users/zertosh/repos","events_url":"https://api.github.com/users/zertosh/events{/privacy}","received_events_url":"https://api.github.com/users/zertosh/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T18:24:27Z","updated_at":"2015-06-04T18:24:27Z","body":"@gaearon browserify and webpack kinda solved it, but having multiple source->ast->source really limits what you can do. Erasing the division between packaging and transformation makes sense. Think about it, packaging is just another transformation that just so happens to span multiple files."}}