From c3cb09122790da8eb8460df3603e2d6b2b5b22c7 Mon Sep 17 00:00:00 2001 From: Michael Ciniawsky Date: Thu, 8 Jun 2017 04:36:21 +0200 Subject: [PATCH] fix(loader): rm unnecessary `this.cacheable` (caching) (#530) --- loader.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/loader.js b/loader.js index 057763c2..06e649e1 100644 --- a/loader.js +++ b/loader.js @@ -13,12 +13,10 @@ var LimitChunkCountPlugin = require("webpack/lib/optimize/LimitChunkCountPlugin" var NS = fs.realpathSync(__dirname); module.exports = function(source) { - if(this.cacheable) this.cacheable(); return source; }; module.exports.pitch = function(request) { - if(this.cacheable) this.cacheable(); var query = loaderUtils.getOptions(this) || {}; var loaders = this.loaders.slice(this.loaderIndex + 1); this.addDependency(this.resourcePath);