diff --git a/index.js b/index.js index d35a5c7cf..4f72eec28 100755 --- a/index.js +++ b/index.js @@ -58,6 +58,9 @@ function NYC (opts) { this.extensions = arrify(config.extension).concat('.js').map(function (ext) { return ext.toLowerCase() + }).filter(function (item, pos, arr) { + // avoid duplicate extensions + return arr.indexOf(item) === pos }) this.transforms = this.extensions.reduce(function (transforms, ext) {