Skip to content

Commit

Permalink
Only set babel node target for test env
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Ashcraft committed Jun 10, 2019
1 parent 017a46e commit 5ede009
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
'use strict';

module.exports = {
presets: [
'@babel/preset-react',
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
presets: ['@babel/preset-react', '@babel/preset-env'],
plugins: ['@babel/plugin-proposal-object-rest-spread'],
env: {
test: {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
},
},
};

0 comments on commit 5ede009

Please sign in to comment.