Skip to content

Commit 14f2a92

Browse files
huguangjuLinusBorg
authored andcommitted
Fix Unknown plugin istanbul error when no unit test (#785)
* Fix Unknown plugin istanbul error when no unit test * simplify handlebars conditionals.
1 parent 6043118 commit 14f2a92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

template/.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
"plugins": ["transform-runtime"],
1212
"env": {
1313
"test": {
14-
"presets": ["env", "stage-2"],
14+
"presets": ["env", "stage-2"]{{#unit}},
1515
"plugins": ["istanbul"]
16+
{{/unit}}
1617
}
1718
}
1819
}

0 commit comments

Comments
 (0)