diff --git a/lib/index.js b/lib/index.js index f83bc84..6a177b3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -34,6 +34,8 @@ VinylLSConverter = (function(){ return [null, file]; } else if (file.isStream()) { return ["Streaming not supported", null]; + } else if ('.js' === Path.extname(file.path)) { + return [null, file]; } else { return this._tryConvertToJS(file.clone()); } diff --git a/src/index.ls b/src/index.ls index eb82261..0841df1 100644 --- a/src/index.ls +++ b/src/index.ls @@ -30,6 +30,8 @@ class VinylLSConverter [null, file] else if file.isStream! ["Streaming not supported", null] + else if '.js' is Path.extname file.path + [null, file] else @_tryConvertToJS(file.clone!)