2 ms·
It’s more than a linter though. The Typescript compiler can handle the most common usage of Babel, namely targeting older runtimes. If you set the build target
by koolba 8y ago
It’s more than a linter though. The Typescript compiler can handle the most common usage of Babel, namely targeting older runtimes.
If you set the build target to ES5 you can still use modern features like async/await and it will rewrite them using a regenerator function that runs on older platforms.
- Vinnl 8y agoSure, it can do that - but in CRA's setup, it doesn't; Babel handles that for you. Babel's TypeScript support allows CRA to re-use its Babel pipeline, and the linter metaphor was meant to help people understand that. Like most metaphors, it's not a one-on-one match.