diff --git a/lib/loader.js b/lib/loader.js index e1af5e51..6b8bd0d8 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -17,7 +17,7 @@ module.exports = function (source) { return source; } // Skip .js files - if (/\.js$/.test(this.request)) { + if (/\.js$/.test(this.resourcePath)) { return source; }