{"action":"closed","issue":{"url":"https://api.github.com/repos/frankwallis/plugin-typescript/issues/23","labels_url":"https://api.github.com/repos/frankwallis/plugin-typescript/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/frankwallis/plugin-typescript/issues/23/comments","events_url":"https://api.github.com/repos/frankwallis/plugin-typescript/issues/23/events","html_url":"https://github.com/frankwallis/plugin-typescript/issues/23","id":86157389,"number":23,"title":"Block-scoped declarations (let, const, function, class) not yet supported outside strict mode","user":{"login":"subesokun","id":6920421,"avatar_url":"https://avatars.githubusercontent.com/u/6920421?v=3","gravatar_id":"","url":"https://api.github.com/users/subesokun","html_url":"https://github.com/subesokun","followers_url":"https://api.github.com/users/subesokun/followers","following_url":"https://api.github.com/users/subesokun/following{/other_user}","gists_url":"https://api.github.com/users/subesokun/gists{/gist_id}","starred_url":"https://api.github.com/users/subesokun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subesokun/subscriptions","organizations_url":"https://api.github.com/users/subesokun/orgs","repos_url":"https://api.github.com/users/subesokun/repos","events_url":"https://api.github.com/users/subesokun/events{/privacy}","received_events_url":"https://api.github.com/users/subesokun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-08T12:30:56Z","updated_at":"2015-06-25T17:08:57Z","closed_at":"2015-06-25T17:08:57Z","body":"When trying to use the latest jspm (master) + plugin-typescript (master) I get currently following error:\r\n\r\n```text\r\nUncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode\r\n\t__exec @ system.js:1164load.metadata.execute @ system.js:2227\r\n\tlinkDynamicModule @ system.js:1860\r\n\tlink @ system.js:1722\r\n\tPromise.all.then.execute @ system.js:2052\r\n\tdoDynamicExecute @ system.js:681\r\n\tlink @ system.js:876\r\n\tdoLink @ system.js:548\r\n\tupdateLinkSetOnLoad @ system.js:596\r\n\t(anonymous function) @ system.js:417\r\nlocalhost/:1 Uncaught (in promise) Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode\r\n\tEvaluating http://localhost:8080/lib/app.ts\r\n\tError loading http://localhost:8080/lib/app.ts!http://localhost:8080/jspm_packages/github /frankwallis/plugin-typescript@1.0.5.js\r\n```\r\nThe file which I've tried to load was (with Babel as transpiler):\r\n```typescript\r\n// lib/app.ts\r\nclass Test {\r\n  constructor() {\r\n    console.log('Hello World!');\r\n  }\r\n}\r\n\r\nvar t = new Test();\r\n```\r\nI'm not really sure what's happening there but I've the feeling that the TS sourcecode gets directly passed into the Babel transpiler instead of running through the TS transpiler beforehand."}}