Skip to content

Commit

Permalink
fix: change babel-core import to optional require in default param (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrhogue authored and Kent C. Dodds committed Aug 17, 2018
1 parent c8e49be commit 2b33b36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import fs from 'fs'
import pathExists from 'path-exists'
import merge from 'lodash.merge'
import invariant from 'invariant'
import * as babelCore from 'babel-core'
import stripIndent from 'strip-indent'
import {oneLine} from 'common-tags'

Expand All @@ -22,7 +21,7 @@ const fullDefaultConfig = {

function pluginTester({
/* istanbul ignore next (TODO: write a test for this) */
babel = babelCore,
babel = require('babel-core'),
plugin = requiredParam('plugin'),
pluginName = getPluginName(plugin, babel),
title: describeBlockTitle = pluginName,
Expand Down

0 comments on commit 2b33b36

Please sign in to comment.