Skip to content

Commit

Permalink
Update Babel recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed May 28, 2018
1 parent 9506401 commit 4365c8a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/recipes/babel.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,25 @@ Instead run the following to reset AVA's cache when you change the configuration
$ npx ava --reset-cache
```

## Add additional extensions

You can configure AVA to recognize additional file extensions and compile those test & helper files using Babel:

```json
{
"ava": {
"babel": {
"extensions": [
"js",
"jsx"
]
}
}
}
```

See also AVA's [`extensions` option](../../readme.md#options).

## Make AVA skip your project's Babel options

You may not want AVA to use your project's Babel options, for example if your project is relying on Babel 6. You can set the `babelrc` option to `false`:
Expand Down

0 comments on commit 4365c8a

Please sign in to comment.