Skip to content

Commit cd8c91b

Browse files
willnodesindresorhus
authored andcommitted
Add more clarification for different Babel config in .babelrc.md (#1642)
1 parent 947f207 commit cd8c91b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/recipes/babelrc.md

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ You can override the default Babel configuration AVA uses for test transpilation
3636
}
3737
```
3838

39+
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).
40+
3941
## Use Babel Polyfills
4042

4143
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 commit comments

Comments
 (0)