TypeScript
TypeScript copied to clipboard
Erroneous javascript generated with "export default function" and es6 target
Typescript 1.7.
When targeting commonjs / es6, the following typescript produces no errors on compilation:
export default function() { var hello = "world"; }
but generates invalid javascript:
function () { var hello = "world"; } exports.default = default_1;
Duplicate of #5844. Should be fixed in 1.8 beta and the nightlies.