Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(loader): rm unnecessary this.cacheable (caching) (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky authored and joshwiens committed Jun 8, 2017
1 parent eaa5236 commit c3cb091
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions loader.js
Expand Up @@ -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);
Expand Down

0 comments on commit c3cb091

Please sign in to comment.