Update article.md
This commit is contained in:
parent
41d791b3d1
commit
be55b7d7e8
1 changed files with 4 additions and 4 deletions
|
@ -9,13 +9,13 @@ So it's quite common for an engine to implement only the part of the standard.
|
||||||
|
|
||||||
A good page to see the current state of support for language features is <https://kangax.github.io/compat-table/es6/> (it's big, we have a lot to study yet).
|
A good page to see the current state of support for language features is <https://kangax.github.io/compat-table/es6/> (it's big, we have a lot to study yet).
|
||||||
|
|
||||||
## Babel.JS
|
## Babel
|
||||||
|
|
||||||
When we use modern features of the language, some engines may fail to support such code. Just as said, not all features are implemented everywhere.
|
When we use modern features of the language, some engines may fail to support such code. Just as said, not all features are implemented everywhere.
|
||||||
|
|
||||||
Here Babel.JS comes to the rescue.
|
Here Babel comes to the rescue.
|
||||||
|
|
||||||
[Babel.JS](https://babeljs.io) is a [transpiler](https://en.wikipedia.org/wiki/Source-to-source_compiler). It rewrites modern JavaScript code into the previous standard.
|
[Babel](https://babeljs.io) is a [transpiler](https://en.wikipedia.org/wiki/Source-to-source_compiler). It rewrites modern JavaScript code into the previous standard.
|
||||||
|
|
||||||
Actually, there are two parts in Babel:
|
Actually, there are two parts in Babel:
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ Actually, there are two parts in Babel:
|
||||||
|
|
||||||
So, we need to setup the transpiler and add the polyfill for old engines to support modern features.
|
So, we need to setup the transpiler and add the polyfill for old engines to support modern features.
|
||||||
|
|
||||||
If we orient towards modern engines and do not use features except those supported everywhere, then we don't need to use Babel.JS.
|
If we orient towards modern engines and do not use features except those supported everywhere, then we don't need to use Babel.
|
||||||
|
|
||||||
## Examples in the tutorial
|
## Examples in the tutorial
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue