4 ms·
Hi, member of the TypeScript team here. A big reason for the file size increase seems to be the inclusion of an AMD module loader and AMD prologues themselves.
by DanRosenwasser 11y ago
Hi, member of the TypeScript team here. A big reason for the file size increase seems to be the inclusion of an AMD module loader and AMD prologues themselves.
By targeting CommonJS and using Browserify, you see a nice decrease. I've sent out a pull request since finding this.
https://github.com/samccone/The-cost-of-transpiling-es2015-in-2016/pull/18 https://github.com/samccone/The-cost-of-transpiling-es2015-i...
- joshschreuder 11y agoI think this puts the TypeScript build 3rd smallest GZIP behind Webpack/Babel/Uglify and Closure. Knowing barely anything about Typescript, does this include TS's ES6 features in the same way as the Babel build?
- deleted 11y ago[deleted]