You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/recipes/babel.md
+13
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,19 @@ You can disable AVA's stage-4 preset:
61
61
62
62
Note that this *does not* stop AVA from compiling your test files using Babel.
63
63
64
+
## Disable AVA's Babel pipeline
65
+
66
+
You can completely disable AVA's use of Babel:
67
+
68
+
```json
69
+
{
70
+
"ava": {
71
+
"babel": false,
72
+
"compileEnhancements": false
73
+
}
74
+
}
75
+
```
76
+
64
77
## Use Babel polyfills
65
78
66
79
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 `Object.entries()` to an underlying Node.js 6 environment.
0 commit comments