Skip to content

Commit

Permalink
Merge pull request #353 from jamestalmage/require-babel-plugins-directly
Browse files Browse the repository at this point in the history
Require babel plugins directly. Fixes #350.
  • Loading branch information
sindresorhus committed Dec 22, 2015
2 parents 52d2a7a + 94797b1 commit 5add6ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ var powerAssert = createEspowerPlugin(babel, {

// if generators are not supported, use regenerator
var options = {
presets: ['stage-2', 'es2015'],
plugins: [powerAssert, 'transform-runtime'],
presets: [require('babel-preset-stage-2'), require('babel-preset-es2015')],
plugins: [powerAssert, require('babel-plugin-transform-runtime')],
sourceMaps: true
};

Expand Down

0 comments on commit 5add6ad

Please sign in to comment.