diff --git a/lib/loader.js b/lib/loader.js index e9909f8..7b41cd6 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -11,7 +11,9 @@ let svgCompiler = new SVGCompiler(); // eslint-disable-next-line consistent-return module.exports = function loader(content) { - this.cacheable(); + if (this.cacheable) { + this.cacheable(); + } const done = this.async(); const loaderContext = this;