Skip to content
Permalink
Browse files

Use @ava/babel

  • Loading branch information...
novemberborn committed Oct 25, 2019
1 parent 7a668a6 commit 3875001af86a608ef681aecfbf7c23d2cedba9dd
@@ -2,7 +2,7 @@ const pkg = require('../package.json');

module.exports = ({experiments, projectDir}) => {
const ava = {version: pkg.version};
const makeProvider = require('./babel');
const makeProvider = require('@ava/babel');

if (experiments.noBabelOutOfTheBox) {
let fatal;
@@ -49,8 +49,8 @@ module.exports = ({experiments, projectDir}) => {
legacy: true,
...full,
validateConfig(babelConfig, compileEnhancements) {
full.validateConfig(babelConfig, compileEnhancements, false);
enhancementsOnly.validateConfig(false, compileEnhancements, true);
full.validateConfig({babelConfig, compileEnhancements, enhancementsOnly: false});
enhancementsOnly.validateConfig({compileEnhancements, enhancementsOnly: true});
},
get compileEnhancements() {
if (enhancementsOnly.isEnabled()) {

0 comments on commit 3875001

Please sign in to comment.
You can’t perform that action at this time.