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
You can enable Babel support by installing `@ava/babel`, and then in AVA's configuration setting `babel` to `true`:
5
+
You can enable Babel support by installing [`@babel/register`](https://babeljs.io/docs/en/babel-register) and `@babel/core`, and then in AVA's configuration requiring `@babel/register`:
8
6
9
7
**`package.json`:**
10
8
11
9
```json
12
10
{
13
11
"ava": {
14
-
"babel": true
12
+
"require": [
13
+
"@babel/register"
14
+
]
15
15
}
16
16
}
17
17
```
18
18
19
-
Find out more in [`@ava/babel`](https://github.com/avajs/babel).
19
+
`@babel/register` is compatible with CommonJS only. It intercepts `require()` calls and compiles files on the fly. This will compile source, helper and test files.
20
+
21
+
For more information visit the [Babel documentation](https://babeljs.io/docs/en/babel-register).
0 commit comments