Skip to content
Permalink
Browse files
Add more clarification for different Babel config in .babelrc.md (#1642)
  • Loading branch information
willnode authored and sindresorhus committed Jan 21, 2018
1 parent 947f207 commit cd8c91b717c17821828596adad8fea879399a52d
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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.

0 comments on commit cd8c91b

Please sign in to comment.