Skip to content

Latest commit

History

History
21 lines (15 loc) 路 670 Bytes

babel.md

File metadata and controls

21 lines (15 loc) 路 670 Bytes

Configuring Babel with AVA

Translations: Fran莽ais

You can enable Babel support by installing @babel/register and @babel/core, and then in AVA's configuration requiring @babel/register:

package.json:

{
	"ava": {
		"require": [
			"@babel/register"
		]
	}
}

@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.

For more information visit the Babel documentation.