zwitterion
zwitterion copied to clipboard
Use only babel
Once babel 7 comes out, I believe Babel is going to have more first-class support for TypeScript, with an installable preset. When that happens, it would probably make sense to just use babel for all transformations. First transform from TypeScript, then resolve bare specifiers, then resolve specifiers without an extension...and anything else, like adding the window.process thing
I'm trying to use only Bable, I really am. But it just seems limited compared to the TypeScript compiler. It isn't easily allowing me to set compiler options, and it doesn't let me target one specific version of the language to compile too. Unfortunately, I think I'm going to have to use a combination of TypeScript and Babel for now. I'll use TypeScript to get code down to ES2015, and then use Babel to rewrite bare imports and import paths without file extensions