Skip to content

Commit

Permalink
Merge pull request #2 from mikestaub/master
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
seanhouli committed Jun 26, 2019
2 parents 463b654 + bfcad0a commit 19cdbed
Show file tree
Hide file tree
Showing 3 changed files with 5,231 additions and 1,844 deletions.
21 changes: 14 additions & 7 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
const isTest = process.env.NODE_ENV === "test";

console.log("test", isTest);

module.exports = {
presets: ["es2015", "stage-0", "react"],

plugins: isTest ? ["babel-plugin-rewire"] : []
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
'@babel/preset-react'
],
plugins: ['@babel/plugin-proposal-class-properties', 'babel-plugin-rewire']
};


Loading

0 comments on commit 19cdbed

Please sign in to comment.