UNPKG

1.84 kBMarkdownView Raw
1Transformer
2===========
3
4The transformer transforms modern Javascript into an older syntax. This feature allows using of modern tecnologies even they arent supported by the browser or Node.js version. All modern features enabled by default, which means transformations are all disabled by default. To enable a transformation, switch of a feature by setting a feature flag to false.
5
6Features
7--------
8
9| Feature | Config | Browsers | Implemented | Default enabled |
10| ------------------- | ------------------ | ---------------- | ----------- | --------------- |
11| Import / Export | esModules | F 54, C 61, E 16 | yes | No |
12| Classes | esClasses | F 49, C 45, E 13 | yes | NodeJS only |
13| Template literals | esTemplates | F 34, C 41, E 12 | yes | NodeJS only |
14| Template tags | esTemplates | F 34, C 41, E 12 | no | NodeJS only |
15| let / const vars | esVars | F 41, C 44, E 12 | no | NodeJS only |
16| for of loops | esLoops | F 13, C 38, E 12 | no | NodeJS only |
17| Spread operator | esSpread | F 27, C 46, E 12 | no | NodeJS only |
18| Destructors | esDestruct | F 41, C 49, E 14 | no | NodeJS only |
19| Rest argunments | esRest | F 15, C 47, E 12 | no | NodeJS only |
20| Promises | esPromises | F 29, C 32, E yy | no | NodeJS only |
21| Generator functions | esGenerators | F 26, C 39, E 13 | no | NodeJS only |
22| Async await | esAsync | F 52, C 55, E ?? | no | NodeJS only |
23| Default parameter | esDefaultParams | | yes | No |