{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/9144","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/9144/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/9144/comments","events_url":"https://api.github.com/repos/babel/babel/issues/9144/events","html_url":"https://github.com/babel/babel/pull/9144","id":388618716,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2ODM5Njc3","number":9144,"title":"Add --use-file-extension option to babel-cli","user":{"login":"eps1lon","id":12292047,"node_id":"MDQ6VXNlcjEyMjkyMDQ3","avatar_url":"https://avatars3.githubusercontent.com/u/12292047?v=4","gravatar_id":"","url":"https://api.github.com/users/eps1lon","html_url":"https://github.com/eps1lon","followers_url":"https://api.github.com/users/eps1lon/followers","following_url":"https://api.github.com/users/eps1lon/following{/other_user}","gists_url":"https://api.github.com/users/eps1lon/gists{/gist_id}","starred_url":"https://api.github.com/users/eps1lon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eps1lon/subscriptions","organizations_url":"https://api.github.com/users/eps1lon/orgs","repos_url":"https://api.github.com/users/eps1lon/repos","events_url":"https://api.github.com/users/eps1lon/events{/privacy}","received_events_url":"https://api.github.com/users/eps1lon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-07T11:37:48Z","updated_at":"2018-12-08T08:10:52Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/babel/babel/pulls/9144","html_url":"https://github.com/babel/babel/pull/9144","diff_url":"https://github.com/babel/babel/pull/9144.diff","patch_url":"https://github.com/babel/babel/pull/9144.patch"},"body":"| Q                        | A <!--(Can use an emoji 👍) -->\r\n| ------------------------ | ---\r\n| Fixed Issues?            | Fixes #6222\r\n| Patch: Bug Fix?          | No\r\n| Major: Breaking Change?  | No\r\n| Minor: New Feature?      | Yes\r\n| Tests Added + Pass?      | Yes\r\n| Documentation PR Link    | <!-- If only readme change, add `[skip ci]` to your commits -->\r\n| Any Dependency Changes?  |\r\n| License                  | MIT\r\n\r\nWebpack 4 automatically [prioritizes `foo.mjs` over `foo.js`](https://webpack.js.org/configuration/resolve/#resolve-extensions) when resolving `import foo from './bar'`.  With this change we can publish a flat package with esmodules and commonjs side by side that allows imports such as `import foo from package/bar` that webpack can easily tree shake with help of esmodules.\r\n\r\nAlternatives for flag name:\r\n- `--output-file-extension`\r\n- `--with-file-extension`\r\n\r\nShould I add a warning if both `--keep-file-extension` and `--use-file-extension` are used?\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/445441194","html_url":"https://github.com/babel/babel/pull/9144#issuecomment-445441194","issue_url":"https://api.github.com/repos/babel/babel/issues/9144","id":445441194,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTQ0MTE5NA==","user":{"login":"eps1lon","id":12292047,"node_id":"MDQ6VXNlcjEyMjkyMDQ3","avatar_url":"https://avatars3.githubusercontent.com/u/12292047?v=4","gravatar_id":"","url":"https://api.github.com/users/eps1lon","html_url":"https://github.com/eps1lon","followers_url":"https://api.github.com/users/eps1lon/followers","following_url":"https://api.github.com/users/eps1lon/following{/other_user}","gists_url":"https://api.github.com/users/eps1lon/gists{/gist_id}","starred_url":"https://api.github.com/users/eps1lon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eps1lon/subscriptions","organizations_url":"https://api.github.com/users/eps1lon/orgs","repos_url":"https://api.github.com/users/eps1lon/repos","events_url":"https://api.github.com/users/eps1lon/events{/privacy}","received_events_url":"https://api.github.com/users/eps1lon/received_events","type":"User","site_admin":false},"created_at":"2018-12-08T08:10:52Z","updated_at":"2018-12-08T08:10:52Z","author_association":"NONE","body":"@ljharb I think so too so that you could use a single cli command and change the output extension based on some environment variable. \r\n\r\nI think this is a better starting point though since `--keep-file-extension` is also a cli flag."}}
{"actor":{"display_login":"eps1lon"}}