steal
Version:
Gets JavaScript.
23 lines (14 loc) • 607 B
Markdown
String} config.transpiler transpiler
StealJS.config
Specifies which transpiler to use for ES6 modules. Traceur has been around for a longer time, but Babel provides advantages such as a smaller overhead.
{String=traceur} Which ES6 compiler to user to generate ES5 code. Possible values:
* `babel`: The default, uses [Babel](https://babeljs.io/).
* `traceur`: Uses [traceur-compiler](https://github.com/google/traceur-compiler).
## Use
If you'd like to control which ES6 transpiler is used simply set in your config:
```json
"steal": {
"transpiler": "traceur"
}
```
{