{"action":"closed","issue":{"url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/779","repository_url":"https://api.github.com/repos/TypeStrong/ts-loader","labels_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/779/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/779/comments","events_url":"https://api.github.com/repos/TypeStrong/ts-loader/issues/779/events","html_url":"https://github.com/TypeStrong/ts-loader/issues/779","id":323436405,"number":779,"title":"transpileOnly doesn't respect tsconfig.json's target and only transpiles to es5","user":{"login":"ItWorksOnMyMachine","id":1774411,"avatar_url":"https://avatars3.githubusercontent.com/u/1774411?v=4","gravatar_id":"","url":"https://api.github.com/users/ItWorksOnMyMachine","html_url":"https://github.com/ItWorksOnMyMachine","followers_url":"https://api.github.com/users/ItWorksOnMyMachine/followers","following_url":"https://api.github.com/users/ItWorksOnMyMachine/following{/other_user}","gists_url":"https://api.github.com/users/ItWorksOnMyMachine/gists{/gist_id}","starred_url":"https://api.github.com/users/ItWorksOnMyMachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItWorksOnMyMachine/subscriptions","organizations_url":"https://api.github.com/users/ItWorksOnMyMachine/orgs","repos_url":"https://api.github.com/users/ItWorksOnMyMachine/repos","events_url":"https://api.github.com/users/ItWorksOnMyMachine/events{/privacy}","received_events_url":"https://api.github.com/users/ItWorksOnMyMachine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-16T01:18:38Z","updated_at":"2018-05-16T12:32:55Z","closed_at":"2018-05-16T12:32:55Z","author_association":"NONE","body":"### Expected Behaviour\r\nThe target JS level specified in the tsconfig.json file would be respected and the JS produced by the typescript transpiler would be es5, es6, etc.\r\n\r\n### Actual Behaviour\r\nThe transpiler is always producing es5 level JS.\r\n\r\n### Steps to Reproduce the Problem\r\n1. Scaffold out a simple app and use es6 lambdas or the spread operator, etc.\r\n2. specify es6 target in tsconfig.json\r\n3. run webpack without specifying transpilerOnly: true.\r\n4. Save the produced chunks.\r\n5. update webpack.config.js to specify transpileOnly: true\r\n6. rerun webpack and then diff the outputs of the first and second runs.\r\n7. Notice the lambda and/or spread, etc. exist in the first but are transpiled down to closures and applys in the second.\r\n\r\n"}}
{"actor":{"display_login":"ItWorksOnMyMachine"}}