Skip to content

Commit

Permalink
Fix Unknown plugin istanbul error when no unit test (#785)
Browse files Browse the repository at this point in the history
* Fix Unknown plugin istanbul error when no unit test

* simplify handlebars conditionals.
  • Loading branch information
huguangju authored and LinusBorg committed Nov 8, 2017
1 parent 6043118 commit 14f2a92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion template/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"plugins": ["transform-runtime"],
"env": {
"test": {
"presets": ["env", "stage-2"],
"presets": ["env", "stage-2"]{{#unit}},
"plugins": ["istanbul"]
{{/unit}}
}
}
}

0 comments on commit 14f2a92

Please sign in to comment.