Is Babel needed with TypeScript?
What is Babel for?
What does Babel preset TypeScript do?
Is TypeScript a transpiler?
What is Babel vs Webpack?
Do we still need Babel?
Absolutely can and do use ES6 W/O babel. All major browsers support the vast majority of features natively (see CanIUse.com), in fact, the only major feature not supported is the import/export of modules.
What is the use of Babel polyfill?
Babel Polyfill adds support to the web browsers for features, which are not available. Babel compiles the code from recent ecma version to the one, which we want. It changes the syntax as per the preset, but cannot do anything for the objects or methods used.
Does Babel use Tsconfig?
@babel/preset-typescript is not using tsconfig.
Does Babel TypeScript use Tsconfig?
These caveats aren’t too bad. You don’t miss too much here. Be aware that Babel plugin mimics TypeScript compiler options and doesn’t read tsconfig. json , it means you must provide TypeScript configs twice, some compiler options might be handled differently.