Skip to content

Commit

Permalink
Add more clarification for different Babel config in .babelrc.md (#1642)
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode authored and sindresorhus committed Jan 21, 2018
1 parent 947f207 commit cd8c91b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/recipes/babelrc.md
Expand Up @@ -36,6 +36,8 @@ You can override the default Babel configuration AVA uses for test transpilation
}
```

Note that this only affects how AVA transpiles your tests. If you use `babel-register` you'll still need to add separate Babel configuration as explained [here](#transpiling-sources).

## Use Babel Polyfills

AVA lets you write your tests using new JavaScript syntax, even on Node.js versions that otherwise wouldn't support it. However, it doesn't add or modify built-ins of your current environment. Using AVA would, for example, not provide modern features such as `Array.prototype.includes()` to an underlying Node.js 4 environment.
Expand Down

0 comments on commit cd8c91b

Please sign in to comment.