- Actually, we are transpiling and generating helpers with TypeScript.
- Nowdays, the state of the art is to split linting, type checking, transpilation and bundling into different tools/steps. Here we are mixing type-checking and transpilation.
1.1. This is important because the used JS engine, jerryscript, supports not just full ECMAScript 5.1, but also some interesting features of ES2015 (you can se them listed in the release notes).
By using Babel to transform the code, we can customize which transformations we want, and skip the ones that JerryScript 2.1 already handles natively.
JerryScript support of ES2015 features
Use Babel + JerryScript following https://github.com/jerryscript-project/jerryscript/tree/v2.1.0/tools/babel
1.1. This is important because the used JS engine, jerryscript, supports not just full ECMAScript 5.1, but also some interesting features of ES2015 (you can se them listed in the release notes).
By using Babel to transform the code, we can customize which transformations we want, and skip the ones that JerryScript 2.1 already handles natively.
JerryScript support of ES2015 features
Use Babel + JerryScript following https://github.com/jerryscript-project/jerryscript/tree/v2.1.0/tools/babel