- JavaScript:Moving to ES2015
- Ved Antani Simon Timms Narayan Prusty
- 174字
- 2021-07-09 19:07:41
Transpilers
Transpiling is a technique that combines both compilation and transformation. The idea is to write ES6-compatible code and use a tool that transpiles this code into a valid and equivalent ES5 code. We will be looking at the most complete and popular transpiler for ES6 called Babel (https://babeljs.io/).
Babel can be used in various ways. You can install it as a node module and invoke it from the command line or import it as a script in your web page. Babel's setup is exhaustive and well-documented at https://babeljs.io/docs/setup/. Babel also has a great Read-Eval-Print-Loop (REPL). We will Babel REPL for most of the examples in this chapter. An in-depth understanding of various ways in which Babel can be used is out of the scope of this module. However, I would urge you to start using Babel as part of your development workflow.
We will cover the most important part of ES6 specifications in this chapter. You should explore all the features of ES6 if possible and make them part of your development workflow.
- Java程序設計與開發
- 大學計算機基礎實驗教程
- Vue.js入門與商城開發實戰
- 算法大爆炸:面試通關步步為營
- Learning Informatica PowerCenter 10.x(Second Edition)
- Hands-On Microservices with Kotlin
- Microsoft System Center Orchestrator 2012 R2 Essentials
- Oracle JDeveloper 11gR2 Cookbook
- 動手打造深度學習框架
- 平面設計經典案例教程:CorelDRAW X6
- jQuery技術內幕:深入解析jQuery架構設計與實現原理
- Practical Predictive Analytics
- 企業級Java現代化:寫給開發者的云原生簡明指南
- Less Web Development Cookbook
- 軟技能2:軟件開發者職業生涯指南