Skip to content

Commit f3e8b18

Browse files
committed
Add istanbul ignore to babel boilerplate
1 parent 15b55a3 commit f3e8b18

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Gruntfile.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ module.exports = function(grunt) {
4343

4444
babel: {
4545
options: {
46-
loose: ['es6.modules']
46+
loose: ['es6.modules'],
47+
auxiliaryCommentBefore: 'istanbul ignore next'
4748
},
4849
amd: {
4950
options: {
@@ -75,7 +76,7 @@ module.exports = function(grunt) {
7576
module: {
7677
loaders: [
7778
// the optional 'runtime' transformer tells babel to require the runtime instead of inlining it.
78-
{ test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader?optional=runtime&loose=es6.modules' }
79+
{ test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader?optional=runtime&loose=es6.modules&auxiliaryCommentBefore=istanbul%20ignore%20next' }
7980
]
8081
},
8182
output: {

0 commit comments

Comments
 (0)