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

fix(loader): rm unnecessary this.cacheable (caching) #530

Merged
merged 1 commit into from
Jun 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions loader.js
Original file line number Diff line number Diff line change
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