I have been having issues setting up my project structure with TypeScript
You're just mimicking babel with `babel-preset-typescript` + `babel-transform-object-rest-spread`, but without support for:
- babel-preset-env
- babel-minification
- or any of the other dozen or so plugins that make development easier
- any bug fixes or polyfills
I don't get why people think that they're doing something special by not using babel. Pre-babel life sucked.Being able to do the same on the backend side would be nice.
It really wasn't much of a difference in terms of getting things up and running.
Typescript has plenty of weird nuances and configuration settings that are required to get things working properly, just like babel.
http://matthewlehner.net/react-hot-module-replacement-with-w...
Babel is essentially `cp` but with a slight twist: AST -> AST conversion. That doesn't take a huge amount of time.
I think we were using Gulp without any hot module replacement, so there are other ways we could have sped up our build time, but Typescript was good enough.
The whole Typescript & Webpack situation is very sad.
What I would love is for TypeScript to do one thing and that is it: static type checking. The fact that it does more than that to me is feature creep. I really wish something like Flow had the community support that TypeScript has because of its single responsibility.
The spirit of TypeScript is code integrity. Imagine that you are working on a project which change often. In this case, refactoring and maintaining breaking changes are headache. How would you identify potential issues before pushing to CI and being punished by errors with no clue?
Babel and TypeScript are different. Babel is a transpiler which enable us to write modern syntax which are not widely supported, while TypeScript is a transpiler which help us to write in confidence and integrity.
Typescript does both X and Y steps, so what exactly don't you understand?