I'm working on a electron app written with Typescript and React. I'm currently using webpack and babel in the build process to package and transpile the Typescript code to es6 (tsc loader) and then es5 (babel).
Since V8 supports almost all features of ES6 already [1], is it really still necessary to use the babel transpiler to build ES5?
A quick test showed that my code works perfectly when just removing babel form the webpack loaders (while targeting commonjs modules rather than ES6 modules). Some ES6 features I want to use are:
- Promises
- async/await (ES7 but available in TypeScript >= 1.7 when transpiled to ES6 [2])
- destructuring / spread operator
[1]: ES6 Compatibility Table [2]: TypeScript 1.7 Release Notes