3 ms·
One thing that makes a huge difference is the plugin ecosystem. TypeScript, as far as I know, doesn't have any while Babel has a whole myriad of them by various
by antjanus 10y ago
One thing that makes a huge difference is the plugin ecosystem. TypeScript, as far as I know, doesn't have any while Babel has a whole myriad of them by various people.
I recently built a Babel plugin that solves a lot of my module import pathing issues (namely the `../../` hell)
https://github.com/AntJanus/babel-plugin-namespaces https://github.com/AntJanus/babel-plugin-namespaces
This and other plugins are just not possible on TS. The best way to look at Babel vs TypeScript is to realize they do different things. As far as Babel ES2015 transpiling vs TypeScript, maybe TS wins out. But Babel is a whole platform for transpiling. In fact, you can use both Babel and TypeScript together!