{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/cli/issues/846","repository_url":"https://api.github.com/repos/aurelia/cli","labels_url":"https://api.github.com/repos/aurelia/cli/issues/846/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/cli/issues/846/comments","events_url":"https://api.github.com/repos/aurelia/cli/issues/846/events","html_url":"https://github.com/aurelia/cli/issues/846","id":305199891,"number":846,"title":"Update to babel 7 ?","user":{"login":"Jule-","id":9716736,"avatar_url":"https://avatars3.githubusercontent.com/u/9716736?v=4","gravatar_id":"","url":"https://api.github.com/users/Jule-","html_url":"https://github.com/Jule-","followers_url":"https://api.github.com/users/Jule-/followers","following_url":"https://api.github.com/users/Jule-/following{/other_user}","gists_url":"https://api.github.com/users/Jule-/gists{/gist_id}","starred_url":"https://api.github.com/users/Jule-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jule-/subscriptions","organizations_url":"https://api.github.com/users/Jule-/orgs","repos_url":"https://api.github.com/users/Jule-/repos","events_url":"https://api.github.com/users/Jule-/events{/privacy}","received_events_url":"https://api.github.com/users/Jule-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-14T15:08:51Z","updated_at":"2018-03-14T15:18:19Z","closed_at":null,"author_association":"NONE","body":"Is there any plan to update `aurelia-cli` to `babel` 7 soon?\r\n\r\nIt seems that these 2 requires messed transpilation when we want to use new `babel` version:\r\nhttps://github.com/aurelia/cli/blob/15b1f1f6d4ee74a5a429ca90651d61b0e8d8abdf/lib/project.js#L207-L218\r\n\r\nAnd it seems that this transformation do the trick:\r\n```javascript\r\nfunction installBabel() {\r\n  require('@babel/polyfill');\r\n  require('@babel/register')({\r\n    plugins: [\r\n      '@babel/plugin-transform-modules-commonjs'\r\n    ],\r\n    ignore: [(filename) => {\r\n      let relativeFromProjectRoot = path.relative(this.directory, filename);\r\n      return !/^aurelia_project/.test(relativeFromProjectRoot);\r\n    }]\r\n  });\r\n}\r\n```\r\n\r\nThis will allow us to use improvements of [`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) in a local `.babelrc` file."},"comment":{"url":"https://api.github.com/repos/aurelia/cli/issues/comments/373059096","html_url":"https://github.com/aurelia/cli/issues/846#issuecomment-373059096","issue_url":"https://api.github.com/repos/aurelia/cli/issues/846","id":373059096,"user":{"login":"Jule-","id":9716736,"avatar_url":"https://avatars3.githubusercontent.com/u/9716736?v=4","gravatar_id":"","url":"https://api.github.com/users/Jule-","html_url":"https://github.com/Jule-","followers_url":"https://api.github.com/users/Jule-/followers","following_url":"https://api.github.com/users/Jule-/following{/other_user}","gists_url":"https://api.github.com/users/Jule-/gists{/gist_id}","starred_url":"https://api.github.com/users/Jule-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jule-/subscriptions","organizations_url":"https://api.github.com/users/Jule-/orgs","repos_url":"https://api.github.com/users/Jule-/repos","events_url":"https://api.github.com/users/Jule-/events{/privacy}","received_events_url":"https://api.github.com/users/Jule-/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T15:18:19Z","updated_at":"2018-03-14T15:18:19Z","author_association":"NONE","body":"Yes if nothing is already planned. Maybe tomorrow. "}}
{"actor":{"display_login":"Jule-"}}