zwitterion icon indicating copy to clipboard operation
zwitterion copied to clipboard

Use only babel

Open lastmjs opened this issue 6 years ago • 1 comments

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

lastmjs avatar Mar 24 '18 05:03 lastmjs

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

lastmjs avatar Dec 12 '19 20:12 lastmjs